Exception: Threatinator::Exceptions::PluginLoadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/threatinator/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, cause = nil)
  @cause = cause
  unless cause.nil?
    message = "#{message} : #{cause.class} : #{cause}"
    self.set_backtrace cause.backtrace
  end
  super(message)
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



15
16
17
# File 'lib/threatinator/exceptions.rb', line 15

def cause
  @cause
end