Exception: Uberinstaller::Exception::Exception

Inherits:
StandardError
  • Object
show all
Includes:
Loggable
Defined in:
lib/uberinstaller/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Loggable

configure_logger_for, #logger, logger_for

Constructor Details

#initialize(parent, print = true) ⇒ Exception

Returns a new instance of Exception.



12
13
14
15
16
# File 'lib/uberinstaller/exception.rb', line 12

def initialize(parent, print = true)
  @parent = parent
  logger.fatal parent if print
  super parent
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



10
11
12
# File 'lib/uberinstaller/exception.rb', line 10

def parent
  @parent
end