Exception: Trueform::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Trueform::Error
- Defined in:
- lib/trueform/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, code:, status: nil, request_id: nil, retry_after: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code:, status: nil, request_id: nil, retry_after: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 13 |
# File 'lib/trueform/error.rb', line 7 def initialize(, code:, status: nil, request_id: nil, retry_after: nil) super() @code = code @status = status @request_id = request_id @retry_after = retry_after end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/trueform/error.rb', line 5 def code @code end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
5 6 7 |
# File 'lib/trueform/error.rb', line 5 def request_id @request_id end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
5 6 7 |
# File 'lib/trueform/error.rb', line 5 def retry_after @retry_after end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/trueform/error.rb', line 5 def status @status end |