Exception: GrapeOnRails::APIError::Base
- Inherits:
-
StandardError
- Object
- StandardError
- GrapeOnRails::APIError::Base
- Includes:
- Support
- Defined in:
- lib/grape_on_rails/api_error.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status = nil) ⇒ Base
constructor
A new instance of Base.
Methods included from Support
Constructor Details
#initialize(message = nil, status = nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/grape_on_rails/api_error.rb', line 8 def initialize = nil, status = nil super || @status = status || :bad_request end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/grape_on_rails/api_error.rb', line 6 def status @status end |