Exception: Vortex::VortexError
- Inherits:
-
StandardError
- Object
- StandardError
- Vortex::VortexError
- Defined in:
- lib/vortex/error.rb
Overview
Custom error class for Vortex SDK exceptions
All Vortex-related errors inherit from this class, making it easy to catch and handle Vortex-specific exceptions.
Instance Attribute Summary collapse
-
#cause ⇒ Exception?
readonly
The original exception that caused this error.
Instance Method Summary collapse
-
#initialize(message = nil, cause = nil) ⇒ VortexError
constructor
A new instance of VortexError.
Constructor Details
#initialize(message = nil, cause = nil) ⇒ VortexError
Returns a new instance of VortexError.
11 12 13 14 |
# File 'lib/vortex/error.rb', line 11 def initialize( = nil, cause = nil) super() @cause = cause end |
Instance Attribute Details
#cause ⇒ Exception? (readonly)
Returns The original exception that caused this error.
17 18 19 |
# File 'lib/vortex/error.rb', line 17 def cause @cause end |