示例#1
0
        public ApiErrorResult(BrokerApiError error, string message = null) : base(error) {
            // https://tools.ietf.org/html/rfc7231#section-6.5.1
            // The 400(Bad Request) status code indicates that the server cannot or 
            // will not process the request due to something that is perceived to be 
            // a client error(e.g., malformed request syntax, invalid request message 
            // framing, or deceptive request routing).
            StatusCode = StatusCodes.Status400BadRequest;

            _brokerApiError = error;
            _message = message;
        }
示例#2
0
        public ApiErrorResult(BrokerApiError error, string message = null) : base(error)
        {
            // https://tools.ietf.org/html/rfc7231#section-6.5.1
            // The 400(Bad Request) status code indicates that the server cannot or
            // will not process the request due to something that is perceived to be
            // a client error(e.g., malformed request syntax, invalid request message
            // framing, or deceptive request routing).
            StatusCode = StatusCodes.Status400BadRequest;

            _brokerApiError = error;
            _message        = message;
        }
示例#3
0
 public BrokerApiErrorException(BrokerApiError error, string message) : base(message)
 {
     ApiError = error;
 }
示例#4
0
 public BrokerApiErrorException(BrokerApiError error, string message): base(message) {
     ApiError = error;
 }