Exception: Vortex::VortexError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, cause = nil) ⇒ VortexError

Returns a new instance of VortexError.

Parameters:

  • message (String) (defaults to: nil)

    Error message

  • cause (Exception, nil) (defaults to: nil)

    Original exception that caused this error



11
12
13
14
# File 'lib/vortex/error.rb', line 11

def initialize(message = nil, cause = nil)
  super(message)
  @cause = cause
end

Instance Attribute Details

#causeException? (readonly)

Returns The original exception that caused this error.

Returns:

  • (Exception, nil)

    The original exception that caused this error



17
18
19
# File 'lib/vortex/error.rb', line 17

def cause
  @cause
end