Exception: LogJam::Error
- Defined in:
- lib/logjam/exceptions.rb
Overview
This class provides the exception class used by the LogJam library.
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message, cause = nil) ⇒ Error
constructor
Constructor for the LogJam::Error class.
Constructor Details
#initialize(message, cause = nil) ⇒ Error
Constructor for the LogJam::Error class.
Parameters
- message
-
The message to be associated with the error.
- cause
-
Any underlying exception to be associated with the error. Defaults to nil.
17 18 19 20 |
# File 'lib/logjam/exceptions.rb', line 17 def initialize(, cause=nil) super() @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
21 22 23 |
# File 'lib/logjam/exceptions.rb', line 21 def cause @cause end |