Class: Captivus::Backtrace
- Inherits:
-
Object
- Object
- Captivus::Backtrace
- Defined in:
- lib/captivus/backtrace.rb,
lib/captivus/backtrace/line.rb
Defined Under Namespace
Classes: Line
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(exception) ⇒ Backtrace
constructor
A new instance of Backtrace.
Constructor Details
#initialize(exception) ⇒ Backtrace
Returns a new instance of Backtrace.
5 6 7 8 9 10 |
# File 'lib/captivus/backtrace.rb', line 5 def initialize(exception) unless exception.respond_to?(:backtrace) raise ArgumentError, "#{exception} must respond to `backtrace`" end @exception = exception end |