protected override Task <GlobalExceptionResponse> Handle(NotFoundException ex) { var res = new GlobalExceptionResponse(new { ex.Message }, 404); return(Task.FromResult(res)); }
protected override Task <GlobalExceptionResponse> Handle(RestRequestFailedException ex) { var res = new GlobalExceptionResponse(new { ex.Message }, 400); return(Task.FromResult(res)); }
protected override Task <GlobalExceptionResponse> Handle(CommandValidationException ex) { var res = new GlobalExceptionResponse(new { ex.Message, ex.Errors }, 400); return(Task.FromResult(res)); }