Exception: PostProxy::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PostProxy::Error
- Defined in:
- lib/postproxy/errors.rb
Direct Known Subclasses
AuthenticationError, BadRequestError, NotFoundError, ValidationError
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code: nil, response: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status_code: nil, response: nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/postproxy/errors.rb', line 5 def initialize(, status_code: nil, response: nil) super() @status_code = status_code @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/postproxy/errors.rb', line 3 def response @response end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/postproxy/errors.rb', line 3 def status_code @status_code end |