Sha256: 0b7ebe4c2c0226c4a20bdefd737e799f3222e9e9afc11cc163723f4ceebca57e

Contents?: true

Size: 882 Bytes

Versions: 16

Compression:

Stored size: 882 Bytes

Contents

module Adhearsion
  module VoIP
    module DSL
      module Dialplan
        # 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.
        class ControlPassingException < Exception
          
          attr_reader :target
          
          def initialize(target)
            super()
            @target = target
          end
          
        end
      
        class ContextNotFoundException < Exception; end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 7 rubygems

Version Path
eric-adhearsion-0.7.999 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
eric-adhearsion-0.8.0 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
jicksta-adhearsion-0.7.999 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
jicksta-adhearsion-0.8.0 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
jicksta-adhearsion-0.8.2 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
jicksta-adhearsion-0.8.3 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
kenwiesner-adhearsioncw-0.8.3 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
mtrudel-adhearsion-0.8.3 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
sant0sk1-adhearsion-0.7.999 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
sevenscale-adhearsion-0.7.1000 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
sevenscale-adhearsion-0.7.1003 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
sevenscale-adhearsion-0.8.0 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-0.8.3 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-0.8.1 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-0.8.2 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-0.8.0 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb