Exception: Stalkr::Error

Inherits:
Exception
  • Object
show all
Defined in:
lib/stalkr/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ex, html) ⇒ Error

Returns a new instance of Error.



8
9
10
11
12
# File 'lib/stalkr/error.rb', line 8

def initialize(ex, html)
    super(ex.message)
    self.set_backtrace(ex.backtrace)
    self.html = html
end

Instance Attribute Details

#htmlObject

Returns the value of attribute html.



6
7
8
# File 'lib/stalkr/error.rb', line 6

def html
  @html
end