Exception: AGIError
- Inherits:
-
Exception
- Object
- Exception
- AGIError
- 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
Direct Known Subclasses
AGIChannelError, AGICommandError, AGIHangupError, AGIInitializeError, AGITimeoutError
Instance Attribute Summary collapse
-
#raw_data ⇒ Object
This is the raw string returned from Asterisk to the AGI if one was available.
Instance Method Summary collapse
-
#initialize(raw_data, *rest) ⇒ AGIError
constructor
A new instance of AGIError.
- #to_s ⇒ Object
- #to_str ⇒ Object
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_data ⇒ Object
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_s ⇒ Object
57 58 59 |
# File 'lib/AGIExceptions.rb', line 57 def to_s @raw_data end |
#to_str ⇒ Object
60 61 62 |
# File 'lib/AGIExceptions.rb', line 60 def to_str self.to_s end |