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