Sha256: 606184e6149b532658e055181292a9efd1c172cbe2c72429503e90a026739279

Contents?: true

Size: 852 Bytes

Versions: 18

Compression:

Stored size: 852 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 < StandardError

          attr_reader :target

          def initialize(target)
            super()
            @target = target
          end

        end

        class ContextNotFoundException < StandardError; end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
adhearsion-1.2.6 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.2.5 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.2.4 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.2.3 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.2.1 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.2.0 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.1.1 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.1.0 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.0.3 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.0.2 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-cw-1.0.2.3 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-cw-1.0.2.2 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-cw-1.0.2.1 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.0.1 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-1.0.0 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
rene-adhearsion-0.8.6 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-0.8.6 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
adhearsion-0.8.5 lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb