Beispiel #1
0
 public void Add(string key, string message, string internalErrorMessage = default(string), MonoStatusCode code = 0)
 {
     Add(new MonoError
     {
         Code            = code,
         InternalMessage = internalErrorMessage,
         Key             = key,
         Message         = message
     });
 }
Beispiel #2
0
 public MonoReturn Error(string message = default(string), string internalMessage = default(string), MonoStatusCode code = MonoStatusCode.BadRequest)
 {
     return(new MonoReturn
     {
         Code = code,
         Message = message,
         InternalMessage = internalMessage,
         Success = false
     });
 }