Exception: AGIError

Inherits:
Exception
  • Object
show all
Defined in:
lib/AGIExceptions.rb

Overview

AGIError is the base Exception Class from which all other AGI Exceptions inherit.

Children:

  • AGIHangupError

  • AGITimeoutError

  • AGIChannelError

  • AGICommandError

  • AGIInitializeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_data, *rest) ⇒ AGIError

Returns a new instance of AGIError.



53
54
55
56
# File 'lib/AGIExceptions.rb', line 53

def initialize(raw_data, *rest)
  @raw_data = raw_data
  super(rest)
end

Instance Attribute Details

#raw_dataObject

This is the raw string returned from Asterisk to the AGI if one was available



52
53
54
# File 'lib/AGIExceptions.rb', line 52

def raw_data
  @raw_data
end

Instance Method Details

#to_sObject



57
58
59
# File 'lib/AGIExceptions.rb', line 57

def to_s
  @raw_data
end

#to_strObject



60
61
62
# File 'lib/AGIExceptions.rb', line 60

def to_str
  self.to_s
end