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