Exemplo n.º 1
0
 internal JsonResponseErrorOnly(IHttpRemotingError error) : base(error)
 {
 }
Exemplo n.º 2
0
 private static void ApplyError(
     ActionExecutedContext context, IHttpRemotingError error)
 {
     context.Result           = CreateError(JsonResponse.FromError(error));
     context.ExceptionHandled = true;
 }
Exemplo n.º 3
0
 public JsonError(IHttpRemotingError error) :
     this(error.StatusCode, error.ErrorCode, error.Message)
 {
 }
 public HttpRemotingException(IHttpRemotingError error) :
     this(error.StatusCode, error.ErrorCode, error.Message)
 {
 }
Exemplo n.º 5
0
 public virtual Exception?ToException(IHttpRemotingError error) =>
 error is Exception e ? e : new HttpRemotingException(error);