Exemplo n.º 1
0
 public GenericError(ApplicationErrorEnum singleError, Exception exception)
 {
     this.Code        = singleError.GetHashCode().ToString();
     this.Description = singleError.GetDisplayName();
     this.Name        = singleError.GetType().ToString();
     this.Exception   = exception;
 }
Exemplo n.º 2
0
 public GenericError(ApplicationErrorEnum singleError, Exception exception, string errorMessage)
 {
     this.Code        = singleError.GetHashCode().ToString();
     this.Description = errorMessage;
     this.Name        = EnumExtensions.GetDisplayName(singleError);
     this.Exception   = exception;
 }
Exemplo n.º 3
0
 public GenericError(ApplicationErrorEnum singleError)
 {
     this.Code        = singleError.GetHashCode().ToString();
     this.Description = singleError.GetDisplayName();
     this.Name        = EnumExtensions.GetDescription(singleError);
     this.Exception   = null;
 }