Exception: Bogo::Config::FileLoadError

Inherits:
LoadError
  • Object
show all
Defined in:
lib/bogo-config/config.rb

Overview

Exception wrapper class used for configuration file load failure

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original_exception = nil) ⇒ FileLoadError

Returns a new instance of FileLoadError.



19
20
21
22
# File 'lib/bogo-config/config.rb', line 19

def initialize(message, original_exception = nil)
  super(message)
  @original = original_exception
end

Instance Attribute Details

#originalException (readonly)

Returns:

  • (Exception)


17
18
19
# File 'lib/bogo-config/config.rb', line 17

def original
  @original
end

Instance Method Details

#exit_codeFixnum

Returns:

  • (Fixnum)


25
26
27
# File 'lib/bogo-config/config.rb', line 25

def exit_code
  222
end