Example #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;
 }
Example #2
0
 public GenericError(ApplicationErrorEnum singleError)
 {
     this.Code        = singleError.GetHashCode().ToString();
     this.Description = singleError.GetDisplayName();
     this.Name        = EnumExtensions.GetDescription(singleError);
     this.Exception   = null;
 }