Exception: THTP::BadRequestError

Inherits:
ServerError show all
Defined in:
lib/thtp/errors.rb

Overview

Indicates an unrecognised or inappropriate RPC request format

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ServerError

#to_thrift

Constructor Details

#initializeBadRequestError

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

.typeObject



26
27
28
# File 'lib/thtp/errors.rb', line 26

def self.type
  Thrift::ApplicationException::UNKNOWN_METHOD
end