Exception: Locomotive::Common::DefaultException
- Inherits:
-
Exception
- Object
- Exception
- Locomotive::Common::DefaultException
- Defined in:
- lib/locomotive/common/exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#notifier ⇒ Object
Returns the value of attribute notifier.
Instance Method Summary collapse
- #init_plugins ⇒ Object
-
#initialize(message = nil, parent_exception = nil) ⇒ DefaultException
constructor
A new instance of DefaultException.
Constructor Details
#initialize(message = nil, parent_exception = nil) ⇒ DefaultException
Returns a new instance of DefaultException.
7 8 9 10 11 12 |
# File 'lib/locomotive/common/exception.rb', line 7 def initialize( = nil, parent_exception = nil) self.notifier = Locomotive::Common.configuration.notifier self.log_backtrace(parent_exception) if parent_exception super() init_plugins end |
Instance Attribute Details
#notifier ⇒ Object
Returns the value of attribute notifier.
5 6 7 |
# File 'lib/locomotive/common/exception.rb', line 5 def notifier @notifier end |
Instance Method Details
#init_plugins ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/locomotive/common/exception.rb', line 14 def init_plugins begin @plugins = [] ::Plugins.constants.each do |name| @plugins << ::Plugins.const_get(name).new(self) end rescue NameError end end |