Exception: THTP::BadRequestError
- Inherits:
-
ServerError
- Object
- StandardError
- Error
- ServerError
- THTP::BadRequestError
- Defined in:
- lib/thtp/errors.rb
Overview
Indicates an unrecognised or inappropriate RPC request format
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BadRequestError
constructor
A new instance of BadRequestError.
Methods inherited from ServerError
Constructor Details
#initialize ⇒ BadRequestError
Returns a new instance of BadRequestError.
30 31 32 |
# File 'lib/thtp/errors.rb', line 30 def initialize super 'Calls must be made as POSTs to /:service/:rpc' end |
Class Method Details
.type ⇒ Object
26 27 28 |
# File 'lib/thtp/errors.rb', line 26 def self.type Thrift::ApplicationException::UNKNOWN_METHOD end |