| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.xins.common.service.CallException
org.xins.client.XINSCallException
org.xins.client.UnacceptableResultXINSCallException
Exception that indicates that an API call returned a result that was considered unacceptable by the application layer.
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 Summary | |
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. | 
|
| Method Summary | |
 DataElement | 
getDataElement()
Returns the optional extra data.  | 
 String | 
getErrorCode()
Returns the error code.  | 
 String | 
getParameter(String name)
Gets the value of the specified returned parameter.  | 
 PropertyReader | 
getParameters()
Gets all returned parameters.  | 
| Methods inherited from class org.xins.common.service.CallException | 
getDetail, getDuration, getMessage, getNext, getRequest, getTarget | 
| Methods inherited from class java.lang.Throwable | 
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
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.| Method Detail | 
public final String getErrorCode()
null if the call was successful and no
    error code was returned.public final PropertyReader getParameters()
PropertyReader containing all parameters, or
    null if there are none.
public final String getParameter(String name)
                          throws IllegalArgumentException
name - the parameter name, not null.
null.
IllegalArgumentException - if name == null.public final DataElement getDataElement()
DataElement, can be null;
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||