Exception: Adhearsion::VoIP::DSL::Dialplan::ControlPassingException
- Inherits:
-
Exception
- Object
- Exception
- Adhearsion::VoIP::DSL::Dialplan::ControlPassingException
- Defined in:
- lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
Overview
A ControlPassingException is used internally to stop execution of one dialplan context and begin execution of another proc instead. It is most notably used by the ~@ unary operator that can be called on a context name within a dialplan to transfer control entirely to that particular context. The serve() method in the servlet_container actually rescues these exceptions specifically and then does +e.target to execute that code.
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target) ⇒ ControlPassingException
constructor
A new instance of ControlPassingException.
Constructor Details
#initialize(target) ⇒ ControlPassingException
Returns a new instance of ControlPassingException.
16 17 18 19 |
# File 'lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb', line 16 def initialize(target) super() @target = target end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
14 15 16 |
# File 'lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb', line 14 def target @target end |