Exception: MotherBrain::APIError
- Defined in:
- lib/mb/errors.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_HTTP_STATUS_CODE =
500
Constants inherited from MBError
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #initialize, #message, #to_hash, #to_json, #to_s
Constructor Details
This class inherits a constructor from MotherBrain::MBError
Class Method Details
.http_status_code(code = DEFAULT_HTTP_STATUS_CODE) ⇒ Integer
99 100 101 |
# File 'lib/mb/errors.rb', line 99 def http_status_code(code = DEFAULT_HTTP_STATUS_CODE) @exit_code ||= code end |
Instance Method Details
#http_status_code ⇒ Object
104 105 106 |
# File 'lib/mb/errors.rb', line 104 def http_status_code self.class.http_status_code end |