Exception: Payload::PayloadError
- Inherits:
-
StandardError
- Object
- StandardError
- Payload::PayloadError
- Defined in:
- lib/payload/exceptions.rb
Direct Known Subclasses
BadRequest, Forbidden, InternalServerError, InvalidAttributes, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnknownResponse
Class Attribute Summary collapse
-
.code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, details = nil) ⇒ PayloadError
constructor
A new instance of PayloadError.
Constructor Details
#initialize(msg, details = nil) ⇒ PayloadError
Returns a new instance of PayloadError.
8 9 10 11 |
# File 'lib/payload/exceptions.rb', line 8 def initialize(msg, details = nil) super(msg) @details = details end |
Class Attribute Details
.code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/payload/exceptions.rb', line 5 def code @code end |