Exception: ThreeScale::Backend::BadRequest
- Defined in:
- lib/3scale/backend/errors.rb
Direct Known Subclasses
ApplicationHasNoState, ContentTypeInvalid, EndUsersNoLongerSupported, TransactionsFormatInvalid, TransactionsHasNilTransaction, TransactionsIsBlank
Instance Method Summary collapse
- #http_code ⇒ Object
-
#initialize(msg = 'request contains syntax errors, should not be repeated without modification'.freeze) ⇒ BadRequest
constructor
A new instance of BadRequest.
Methods inherited from Error
code, #code, #to_xml, underscore
Constructor Details
#initialize(msg = 'request contains syntax errors, should not be repeated without modification'.freeze) ⇒ BadRequest
Returns a new instance of BadRequest.
33 34 35 |
# File 'lib/3scale/backend/errors.rb', line 33 def initialize(msg = 'request contains syntax errors, should not be repeated without modification'.freeze) super msg end |
Instance Method Details
#http_code ⇒ Object
37 38 39 |
# File 'lib/3scale/backend/errors.rb', line 37 def http_code 400 end |