Exception: LogJam::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/logjam/exceptions.rb

Overview

This class provides the exception class used by the LogJam library.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, cause=nil)
   super(message)
   @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



21
22
23
# File 'lib/logjam/exceptions.rb', line 21

def cause
  @cause
end