Exception: Procore::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Procore::Error
- Defined in:
- lib/procore/errors.rb
Overview
Generic / catch all error class. All other errors generated by the gem inherit from this class.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Human readable error message.
-
#response ⇒ Object
readonly
A Response object which contains details about the request.
Instance Method Summary collapse
-
#initialize(message, response: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, response: nil) ⇒ Error
Returns a new instance of Error.
11 12 13 14 15 16 |
# File 'lib/procore/errors.rb', line 11 def initialize(, response: nil) @message = @response = response super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Human readable error message.
6 7 8 |
# File 'lib/procore/errors.rb', line 6 def @message end |
#response ⇒ Object (readonly)
A Response object which contains details about the request.
9 10 11 |
# File 'lib/procore/errors.rb', line 9 def response @response end |