public class UnacceptableResultXINSCallException extends XINSCallException
Note that this exception is not thrown if the result is invalid according to the XINS rules for a result XML document. Only if the result is just invalid in relation to the applicable API specification this exception is thrown.
Constructor and Description |
---|
UnacceptableResultXINSCallException(AbstractCAPICallResult result,
String detail,
Throwable cause)
Constructs a new
UnacceptableCallResultException using the
specified AbstractCAPICallResult . |
UnacceptableResultXINSCallException(XINSCallResult result,
String detail,
Throwable cause)
Constructs a new
UnacceptableCallResultException using the
specified XINSCallResult . |
Modifier and Type | Method and Description |
---|---|
Element |
getDataElement()
Returns the optional extra data.
|
String |
getErrorCode()
Returns the error code.
|
String |
getParameter(String name)
Gets the value of the specified returned parameter.
|
Map<String,String> |
getParameters()
Gets all returned parameters.
|
getDetail, getDuration, getMessage, getNext, getRequest, getTarget, isFailOverAllowed
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnacceptableResultXINSCallException(XINSCallResult result, String detail, Throwable cause) throws IllegalArgumentException
UnacceptableCallResultException
using the
specified XINSCallResult
.result
- the XINSCallResult
that is considered unacceptable, never
null
.detail
- a detailed description of why the result is considered unacceptable,
or null
if such a description is not available.cause
- the optional cause exception, or null
.IllegalArgumentException
- if result == null
.public UnacceptableResultXINSCallException(AbstractCAPICallResult result, String detail, Throwable cause) throws IllegalArgumentException
UnacceptableCallResultException
using the
specified AbstractCAPICallResult
.result
- the AbstractCAPICallResult
that is considered unacceptable,
never null
.detail
- a detailed description of why the result is considered unacceptable,
or null
if such a description is not available.cause
- the optional cause exception, or null
.IllegalArgumentException
- if result == null
.public final String getErrorCode()
null
if the call was successful and no
error code was returned.public final Map<String,String> getParameters()
Map
containing all parameters, or
null
if there are none.public final String getParameter(String name) throws IllegalArgumentException
name
- the parameter name, not null
.null
if there is no values.IllegalArgumentException
- if name == null
.See http://www.xins.org/.