Exception: Radiator::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Radiator::BaseError
- Defined in:
- lib/radiator/base_error.rb
Direct Known Subclasses
ApiError, OperationError, StreamError, TransactionError, TypeError
Instance Method Summary collapse
-
#initialize(error) ⇒ BaseError
constructor
A new instance of BaseError.
- #to_s ⇒ Object
Constructor Details
#initialize(error) ⇒ BaseError
Returns a new instance of BaseError.
3 4 5 |
# File 'lib/radiator/base_error.rb', line 3 def initialize(error) @error = error end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/radiator/base_error.rb', line 7 def to_s JSON[@error] rescue @error end |