All responses from the AlephX-server share the same functionality and keys:
- expressed in XML
- name of the parent element is equal to the parameter 'op', except when
the value in 'op' is not recognized. Then it is set to 'login'.
- when an internal error occurred, the error is reported in the key 'error'
- session-id is reported in the key 'session-id'
- al the other subkeys are be treated as 'data'
All public methods from Catmandu::AlephX return an object of a subclass of Catmandu::AlepX::Response.
In case of connection errors, or xml parsing problems, exceptions are thrown.
internal error that was reported in the xml response.
These errors only apply to values in your parameters.
Other errors, like connection errors or problems while parsing the xml response are thrown as exceptions.