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