Exception: Trigv::ApiError
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code, body = nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, status_code, body = nil) ⇒ ApiError
Returns a new instance of ApiError.
60 61 62 63 64 |
# File 'lib/trigv/errors.rb', line 60 def initialize(, status_code, body = nil) super() @status_code = status_code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
58 59 60 |
# File 'lib/trigv/errors.rb', line 58 def body @body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
58 59 60 |
# File 'lib/trigv/errors.rb', line 58 def status_code @status_code end |