Exception: OsCtld::ConfigError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, original_exception = nil) ⇒ ConfigError

Returns a new instance of ConfigError.



10
11
12
13
# File 'lib/osctld/exceptions.rb', line 10

def initialize(msg, original_exception = nil)
  super(msg)
  @original_exception = original_exception
end

Instance Attribute Details

#original_exceptionException? (readonly)

Returns original exception.

Returns:

  • (Exception, nil)

    original exception



8
9
10
# File 'lib/osctld/exceptions.rb', line 8

def original_exception
  @original_exception
end