Exemple #1
0
 private ErroDto(string code, string message, ErroDto[] details, ErroDto innerError)
 {
     Code       = code;
     Message    = message;
     Details    = details;
     InnerError = innerError;
 }
Exemple #2
0
 public static ErroRespostaDto Para(IEnumerable <IdentityError> identityErrors)
 {
     return(new ErroRespostaDto(ErroDto.Para(identityErrors)));
 }
Exemple #3
0
 public static ErroRespostaDto Para(ModelStateDictionary modelState)
 {
     return(new ErroRespostaDto(ErroDto.Para(modelState)));
 }
Exemple #4
0
 public static ErroRespostaDto Para(Exception exception)
 {
     return(new ErroRespostaDto(ErroDto.Para(exception)));
 }
Exemple #5
0
 public static ErroRespostaDto ParaNotFound(string busca)
 {
     return(new ErroRespostaDto(ErroDto.ParaNotFound(busca)));
 }
Exemple #6
0
 private ErroRespostaDto(ErroDto error)
 {
     Error = error;
 }