Exception: Exception

Defined in:
lib/pry-exception_explorer/core_ext.rb

Overview

PryExceptionExplorer monkey-patches to Exception

Constant Summary

NoContinuation =
Class.new(StandardError)

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Continuation) continuation



8
9
10
# File 'lib/pry-exception_explorer/core_ext.rb', line 8

def continuation
  @continuation
end

- (Array<Binding>) exception_call_stack



13
14
15
# File 'lib/pry-exception_explorer/core_ext.rb', line 13

def exception_call_stack
  @exception_call_stack
end

- (Boolean) should_intercept Also known as: should_intercept?



17
18
19
# File 'lib/pry-exception_explorer/core_ext.rb', line 17

def should_intercept
  @should_intercept
end

Instance Method Details

- (Object) continue

This method enables us to continue an exception (using callcc internally)

Raises:



21
22
23
24
# File 'lib/pry-exception_explorer/core_ext.rb', line 21

def continue
  raise NoContinuation unless continuation.respond_to?(:call)
  continuation.call
end