Exception: Bogo::Config::FileLoadError

Inherits:
LoadError
  • Object
show all
Defined in:
lib/bogo/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.



21
22
23
24
# File 'lib/bogo/config.rb', line 21

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

Instance Attribute Details

#originalException (readonly)

Returns:

  • (Exception)


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

def original
  @original
end

Instance Method Details

#exit_codeFixnum

Returns:

  • (Fixnum)


27
28
29
# File 'lib/bogo/config.rb', line 27

def exit_code
  222
end