Exception: SteamCondenser::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/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

Direct Known Subclasses

PacketFormat, RCONBan, RCONNoAuth, Timeout, WebApi

Defined Under Namespace

Classes: PacketFormat, RCONBan, RCONNoAuth, Timeout, WebApi

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause = nil) ⇒ Error

Creates a new Error instance


23
24
25
26
# File 'lib/steam-condenser/error.rb', line 23

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

Instance Attribute Details

#causeException (readonly)

Returns the exception that caused this error


17
18
19
# File 'lib/steam-condenser/error.rb', line 17

def cause
  @cause
end