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