public class UnacceptableMessageException extends XINSCallException
Constructor and Description |
---|
UnacceptableMessageException(XINSCallResult result)
Constructs a new
UnacceptableMessageException using the
specified XINSCallResult . |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeCombo(String type,
List<String> attributes,
String elementName)
Adds an invalid combination of attributes.
|
void |
addInvalidValueForType(String parameter,
String type)
Deprecated.
since XINS 2.0, use
addInvalidValueForType(String, String, String) . |
void |
addInvalidValueForType(String parameter,
String value,
String type)
Adds an invalid value for a specified type.
|
void |
addInvalidValueForType(String parameter,
String value,
String type,
String element)
Adds an invalid value for a specified type.
|
void |
addMissingParameter(String parameter)
Adds to the response that a paramater that is missing.
|
void |
addMissingParameter(String parameter,
String element)
Adds to the response a parameter that is missing in an element.
|
void |
addParamCombo(String type,
List<String> parameters)
Adds an invalid combination of parameters.
|
String |
getMessage()
Returns the message for this exception.
|
getDetail, getDuration, getNext, getRequest, getTarget, isFailOverAllowed
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnacceptableMessageException(XINSCallResult result)
UnacceptableMessageException
using the
specified XINSCallResult
.
This constructor is used by the generated CAPI.result
- the XINSCallResult
that is considered unacceptable,
cannot be null
.public String getMessage()
getMessage
in class CallException
null
.public void addMissingParameter(String parameter)
parameter
- the missing parameter.public void addMissingParameter(String parameter, String element)
parameter
- the missing parameter.element
- the element in which the parameter is missing.public void addInvalidValueForType(String parameter, String type)
addInvalidValueForType(String, String, String)
.parameter
- the name of the parameter passed by the user.type
- the type which this parameter should be compliant with.public void addInvalidValueForType(String parameter, String value, String type)
parameter
- the name of the parameter passed by the user.value
- the value of the parameter passed by the user.type
- the type which this parameter should be compliant with.public void addInvalidValueForType(String parameter, String value, String type, String element)
parameter
- the parameter passed by the user.value
- the value of the parameter passed by the user.type
- the type which this parameter should be compliant with.element
- the element in which the parameter is missing.public void addParamCombo(String type, List<String> parameters)
type
- the type of the combination.parameters
- list of the parameters in the combination passed as a list of
String
objects.public void addAttributeCombo(String type, List<String> attributes, String elementName)
type
- the type of the combination.attributes
- list of the attributes in the combination passed as a list of
String
objects.elementName
- the name of the element to which these attributes belong.See http://www.xins.org/.