Exception: Bandwidth::Errors::GenericError
- Inherits:
-
StandardError
- Object
- StandardError
- Bandwidth::Errors::GenericError
- Defined in:
- lib/bandwidth/errors.rb
Overview
Generic error class
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
Error code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ GenericError
constructor
A new instance of GenericError.
Constructor Details
#initialize(code, message) ⇒ GenericError
Returns a new instance of GenericError
8 9 10 11 |
# File 'lib/bandwidth/errors.rb', line 8 def initialize code, super @code = code end |
Instance Attribute Details
#code ⇒ String (readonly)
Returns Error code
6 7 8 |
# File 'lib/bandwidth/errors.rb', line 6 def code @code end |