Exception: AMT::InvocationError
- Inherits:
-
StandardError
- Object
- StandardError
- AMT::InvocationError
- Defined in:
- lib/amt/service/basic.rb
Overview
Raised when error invoking an AMT method was detected, i.e. when the status field of the SOAP response indicates an error condition.
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
The response document.
-
#status ⇒ Object
readonly
The AMT::PTStatus instance of the failed method.
Instance Method Summary collapse
-
#initialize(status, document) ⇒ InvocationError
constructor
Create a new InvocationError object for the given
status
anddocument
.
Constructor Details
#initialize(status, document) ⇒ InvocationError
Create a new InvocationError object for the given status
and document
.
34 35 36 37 |
# File 'lib/amt/service/basic.rb', line 34 def initialize(status, document) super("Error invoking AMT method, status = #{status}") @status, @document = @status, @document end |
Instance Attribute Details
#document ⇒ Object (readonly)
The response document.
31 32 33 |
# File 'lib/amt/service/basic.rb', line 31 def document @document end |
#status ⇒ Object (readonly)
The AMT::PTStatus instance of the failed method.
28 29 30 |
# File 'lib/amt/service/basic.rb', line 28 def status @status end |