Exception: GPT::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GPT::Error
- Defined in:
- lib/gpt/error.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, headers: nil, response: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status: nil, headers: nil, response: nil) ⇒ Error
Returns a new instance of Error.
4 5 6 7 8 9 |
# File 'lib/gpt/error.rb', line 4 def initialize(, status: nil, headers: nil, response: nil) super() @status = status @headers = headers @response = response end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
2 3 4 |
# File 'lib/gpt/error.rb', line 2 def headers @headers end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
2 3 4 |
# File 'lib/gpt/error.rb', line 2 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
2 3 4 |
# File 'lib/gpt/error.rb', line 2 def status @status end |