com.ibm.websphere.sib.wsn.faults
Class UnrecognizedPolicyRequestFault
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.websphere.wsrf.BaseFault
-
- com.ibm.websphere.sib.wsn.faults.UnrecognizedPolicyRequestFault
-
- All Implemented Interfaces:
- java.io.Serializable
public class UnrecognizedPolicyRequestFault extends BaseFault
This exception class represents the UnrecognizedPolicyRequestFault type defined in the WS-Notification Base Notification schema.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description UnrecognizedPolicyRequestFault()
Default constructor If this constructor is used, a subsequent call tosetUnrecognizedPolicyNames(QName[])
will be necessary, to set the required UnrecognizedPolicy valuesUnrecognizedPolicyRequestFault(EndpointReference originator, ErrorCode errorCode, FaultDescription[] descriptions, IOSerializableSOAPElement faultCause, IOSerializableSOAPElement[] extensibilityElements, Attribute[] attributes, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault from the specified information.UnrecognizedPolicyRequestFault(javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names.UnrecognizedPolicyRequestFault(java.lang.String message, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names and containing the specified message as a description.UnrecognizedPolicyRequestFault(java.lang.String message, java.lang.Throwable cause, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names and containing the specified message as a description and with the specified cause.UnrecognizedPolicyRequestFault(java.lang.Throwable cause, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names and with the specified cause.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getMessage()
Get the message for this fault.javax.xml.namespace.QName[]
getUnrecognizedPolicyNames()
Get the names of the elements of the Policy which were not recognizedjava.lang.Throwable
initCause(java.lang.Throwable throwable)
void
setUnrecognizedPolicyNames(javax.xml.namespace.QName[] unrecognizedPolicyNames)
Set the names of the elements of the Policy which were not recognized-
Methods inherited from class com.ibm.websphere.wsrf.BaseFault
getAttributes, getDescriptions, getErrorCode, getExtensibilityElements, getFaultCause, getOriginator, getTimestamp, setAttributes, setDescriptions, setErrorCode, setExtensibilityElements, setFaultCause, setOriginator, setTimestamp
-
-
-
-
Constructor Detail
-
UnrecognizedPolicyRequestFault
public UnrecognizedPolicyRequestFault()
Default constructor If this constructor is used, a subsequent call tosetUnrecognizedPolicyNames(QName[])
will be necessary, to set the required UnrecognizedPolicy values
-
UnrecognizedPolicyRequestFault
public UnrecognizedPolicyRequestFault(javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names.- Parameters:
unrecognizedPolicyNames
- The names of elements in the Policy which were not recognized
-
UnrecognizedPolicyRequestFault
public UnrecognizedPolicyRequestFault(EndpointReference originator, ErrorCode errorCode, FaultDescription[] descriptions, IOSerializableSOAPElement faultCause, IOSerializableSOAPElement[] extensibilityElements, Attribute[] attributes, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault from the specified information. All arguments are optional except for unrecognizedPolicyNames- Parameters:
originator
- The WS-Addressing EndpointReference of the Web Service that generated the fault.errorCode
- The error code.descriptions
- The set of descriptions.faultCause
- The fault cause.extensibilityElements
- The set of extensibility elements.attributes
- The set of attributesunrecognizedPolicyNames
- The names of elements in the Policy which were not recognized
-
UnrecognizedPolicyRequestFault
public UnrecognizedPolicyRequestFault(java.lang.String message, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names and containing the specified message as a description.
The descriptions for the fault may be overridden by callingBaseFault.setDescriptions(com.ibm.websphere.wsrf.FaultDescription[])
- Parameters:
message
- The exception message. This will be stored as the first fault description.unrecognizedPolicyNames
- The names of elements in the Policy which were not recognized
-
UnrecognizedPolicyRequestFault
public UnrecognizedPolicyRequestFault(java.lang.Throwable cause, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names and with the specified cause.
Notes:- The cause specified as an argument to this method is independent of the faultCause that can be
specified via
com.ibm.websphere.wsrf.BaseFault#setFaultCause(javax.xml.soap.SOAPElement)
. -
The result of calling
toString()
on the specified cause and sub-causes thereof, will be added as descriptions of this fault. -
The descriptions for the fault may be overridden by calling
BaseFault.setDescriptions(com.ibm.websphere.wsrf.FaultDescription[])
- Parameters:
cause
- The cause of the exceptionunrecognizedPolicyNames
- The names of elements in the Policy which were not recognized
- The cause specified as an argument to this method is independent of the faultCause that can be
specified via
-
UnrecognizedPolicyRequestFault
public UnrecognizedPolicyRequestFault(java.lang.String message, java.lang.Throwable cause, javax.xml.namespace.QName[] unrecognizedPolicyNames)
Create an instance of the fault with the specified unrecognized policy element names and containing the specified message as a description and with the specified cause.
Notes:- The cause specified as an argument to this method is independent of the faultCause that can be
specified via
com.ibm.websphere.wsrf.BaseFault#setFaultCause(javax.xml.soap.SOAPElement)
. -
The result of calling
toString()
on the specified cause and sub-causes thereof, will be added as descriptions of this fault. -
The descriptions for the fault may be overridden by calling
BaseFault.setDescriptions(com.ibm.websphere.wsrf.FaultDescription[])
- Parameters:
message
- The exception message. This will be stored as the first fault description.cause
- The cause of the exceptionunrecognizedPolicyNames
- The names of elements in the Policy which were not recognized
- The cause specified as an argument to this method is independent of the faultCause that can be
specified via
-
-
Method Detail
-
getUnrecognizedPolicyNames
public javax.xml.namespace.QName[] getUnrecognizedPolicyNames()
Get the names of the elements of the Policy which were not recognized- Returns:
- The names of elements in the Policy which were not recognized
-
setUnrecognizedPolicyNames
public void setUnrecognizedPolicyNames(javax.xml.namespace.QName[] unrecognizedPolicyNames)
Set the names of the elements of the Policy which were not recognized- Parameters:
unrecognizedPolicyNames
- The names of elements in the Policy which were not recognized
-
getMessage
public java.lang.String getMessage()
Get the message for this fault. This method overrides the implementation injava.lang.Throwable
to return the text of the first description in the sequence of descriptions belonging to the fault.- Overrides:
getMessage
in classjava.lang.Throwable
- See Also:
Throwable.getMessage()
-
initCause
public java.lang.Throwable initCause(java.lang.Throwable throwable)
- Overrides:
initCause
in classjava.lang.Throwable
- See Also:
Throwable.initCause(java.lang.Throwable)
-
-