Exception: Threatinator::Exceptions::PluginLoadError
- Inherits:
-
StandardError
- Object
- StandardError
- Threatinator::Exceptions::PluginLoadError
- Defined in:
- lib/threatinator/exceptions.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message, cause = nil) ⇒ PluginLoadError
constructor
A new instance of PluginLoadError.
Constructor Details
#initialize(message, cause = nil) ⇒ PluginLoadError
Returns a new instance of PluginLoadError.
16 17 18 19 20 21 22 23 |
# File 'lib/threatinator/exceptions.rb', line 16 def initialize(, cause = nil) @cause = cause unless cause.nil? = "#{} : #{cause.class} : #{cause}" self.set_backtrace cause.backtrace end super() end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
15 16 17 |
# File 'lib/threatinator/exceptions.rb', line 15 def cause @cause end |