Exception: SteamCondenserError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/errors/steam_condenser_error.rb

Overview

This error class is used as a base class for all errors related to Steam Condenser’s operation

Author:

  • Sebastian Staudt

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause = nil) ⇒ SteamCondenserError

Creates a new ‘SteamCondenserError` instance

Parameters:

  • message (String)

    The message to attach to the error

  • cause (Exception) (defaults to: nil)

    The exception that caused this error



21
22
23
24
# File 'lib/errors/steam_condenser_error.rb', line 21

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

Instance Attribute Details

#causeException (readonly)

Returns the exception that caused this error

Returns:

  • (Exception)

    The exception that caused this error



15
16
17
# File 'lib/errors/steam_condenser_error.rb', line 15

def cause
  @cause
end