Exception: BandwidthIris::Errors::GenericError
- Inherits:
-
StandardError
- Object
- StandardError
- BandwidthIris::Errors::GenericError
- Defined in:
- lib/bandwidth-iris/errors.rb
Overview
Generic error class
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
Error code.
-
#http_status ⇒ String
readonly
Http status code.
Instance Method Summary collapse
-
#initialize(code, message, http_status) ⇒ GenericError
constructor
private
A new instance of GenericError.
Constructor Details
#initialize(code, message, http_status) ⇒ GenericError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of GenericError.
12 13 14 15 16 |
# File 'lib/bandwidth-iris/errors.rb', line 12 def initialize code, , http_status super @code = code @http_status = http_status end |
Instance Attribute Details
#code ⇒ String (readonly)
Returns Error code.
6 7 8 |
# File 'lib/bandwidth-iris/errors.rb', line 6 def code @code end |
#http_status ⇒ String (readonly)
Returns Http status code.
9 10 11 |
# File 'lib/bandwidth-iris/errors.rb', line 9 def http_status @http_status end |