Exception: Toast::Errors::BadRequest
- Inherits:
-
StandardError
- Object
- StandardError
- Toast::Errors::BadRequest
- Defined in:
- lib/toast/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#source_location ⇒ Object
Returns the value of attribute source_location.
Instance Method Summary collapse
-
#initialize(message, source_location, code = nil) ⇒ BadRequest
constructor
A new instance of BadRequest.
Constructor Details
#initialize(message, source_location, code = nil) ⇒ BadRequest
Returns a new instance of BadRequest.
29 30 31 32 33 |
# File 'lib/toast/errors.rb', line 29 def initialize , source_location, code = nil @source_location = source_location @code = code super end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
27 28 29 |
# File 'lib/toast/errors.rb', line 27 def code @code end |
#source_location ⇒ Object
Returns the value of attribute source_location.
26 27 28 |
# File 'lib/toast/errors.rb', line 26 def source_location @source_location end |