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

#continuationContinuation



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

def continuation
  @continuation
end

#exception_call_stackArray<Binding>



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

def exception_call_stack
  @exception_call_stack
end

#should_interceptBoolean 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

#continueObject

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