Exception: AMT::InvocationError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#documentObject (readonly)

The response document.



31
32
33
# File 'lib/amt/service/basic.rb', line 31

def document
  @document
end

#statusObject (readonly)

The AMT::PTStatus instance of the failed method.



28
29
30
# File 'lib/amt/service/basic.rb', line 28

def status
  @status
end