Exception: Uberinstaller::Exception::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Uberinstaller::Exception::Exception
- Includes:
- Loggable
- Defined in:
- lib/uberinstaller/exception.rb
Direct Known Subclasses
CommandNotProcessable, InvalidFolder, InvalidJson, InvalidLocalPackage, InvalidPackage, InvalidPpa, InvalidUrl, JsonFileNotFound, JsonParseError, MissingLocalPackage, MissingUrl, MultipleLocalFileNotSupported, MultipleLocalFilesNotSupported, MultipleRepositoriesNotSupported, NoPreprocessorException, ParserArgumentError, WrongArchitecture, WrongVersion
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, print = true) ⇒ Exception
constructor
A new instance of Exception.
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
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
10 11 12 |
# File 'lib/uberinstaller/exception.rb', line 10 def parent @parent end |