class Polyphony::BaseException

Common exception class for interrupting fibers. These exceptions allow control of fibers. BaseException exceptions can encapsulate a value and thus provide a way to interrupt long-running blocking operations while still passing a value back to the call site. BaseException exceptions can also references a cancel scope in order to allow correct bubbling of exceptions through nested cancel scopes.

Attributes

value[R]

Public Class Methods

new(value = nil) click to toggle source
Calls superclass method Exception::new
# File lib/polyphony/core/exceptions.rb, line 13
def initialize(value = nil)
  @caller_backtrace = caller
  @value = value
  super
end