Exception: SteamCondenser::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SteamCondenser::Error
- 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
Direct Known Subclasses
Defined Under Namespace
Classes: PacketFormat, RCONBan, RCONNoAuth, Timeout, WebApi
Instance Attribute Summary collapse
-
#cause ⇒ Exception
readonly
Returns the exception that caused this error.
Instance Method Summary collapse
-
#initialize(message, cause = nil) ⇒ Error
constructor
Creates a new
Error
instance.
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(, cause = nil) super @cause = cause end |
Instance Attribute Details
#cause ⇒ Exception (readonly)
Returns the exception that caused this error
17 18 19 |
# File 'lib/steam-condenser/error.rb', line 17 def cause @cause end |