com.ibm.websphere.sib.wsn.faults
Class UnsupportedPolicyRequestFault
- java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.websphere.wsrf.BaseFault
com.ibm.websphere.sib.wsn.faults.UnsupportedPolicyRequestFault
All implemented interfaces:
java.io.Serializable
- public class UnsupportedPolicyRequestFault
- extends BaseFault
See Also:
Constructor Summary
Constructor and Description |
---|
UnsupportedPolicyRequestFault()
Default constructor If this constructor is used, a subsequent call
to
setUnsupportedPolicyNames(QName[]) will be necessary, to
set the required UnsupportedPolicy values
|
UnsupportedPolicyRequestFault(EndpointReference originator,ErrorCode errorCode,FaultDescription[] descriptions,IOSerializableSOAPElement faultCause,IOSerializableSOAPElement[] extensibilityElements,Attribute[] attributes,javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault from the specified information.
|
UnsupportedPolicyRequestFault(javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names.
|
UnsupportedPolicyRequestFault(java.lang.String message,javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names and containing the specified message
as a description.
|
UnsupportedPolicyRequestFault(java.lang.String message,java.lang.Throwable cause,javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names and containing the specified message
as a description and with the specified cause.
|
UnsupportedPolicyRequestFault(java.lang.Throwable cause,javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names and with the specified cause.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getMessage()
Get the message for this fault.
|
|
getUnsupportedPolicyNames()
Get the names of the elements of the Policy which were not supported.
|
|
initCause(java.lang.Throwable throwable)
|
|
setUnsupportedPolicyNames(javax.xml.namespace.QName[] unsupportedPolicyNames)
Set the names of the elements of the Policy which were not supported.
|
Methods inherited from class com.ibm.websphere.wsrf.BaseFault |
---|
getAttributes, getDescriptions, getErrorCode, getExtensibilityElements, getFaultCause, getOriginator, getTimestamp, setAttributes, setDescriptions, setErrorCode, setExtensibilityElements, setFaultCause, setOriginator, setTimestamp |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
UnsupportedPolicyRequestFault
- public UnsupportedPolicyRequestFault( )
UnsupportedPolicyRequestFault
- public UnsupportedPolicyRequestFault( javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names.
Parameters:
unsupportedPolicyNames
- The names of elements in the Policy which were not supported UnsupportedPolicyRequestFault
- public UnsupportedPolicyRequestFault( EndpointReference originator,
- ErrorCode errorCode,
- FaultDescription[] descriptions,
- IOSerializableSOAPElement faultCause,
- IOSerializableSOAPElement[] extensibilityElements,
- Attribute[] attributes,
- javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault from the specified information. All arguments
are optional except for unsupportedPolicyNames
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 attributes unsupportedPolicyNames
- The names of elements in the Policy which were not supported UnsupportedPolicyRequestFault
- public UnsupportedPolicyRequestFault( java.lang.String message,
- javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names and containing the specified message
as a description.
The descriptions for the fault may be overridden by calling
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. unsupportedPolicyNames
- The names of elements in the Policy which were not supported UnsupportedPolicyRequestFault
- public UnsupportedPolicyRequestFault( java.lang.Throwable cause,
- javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names and with the specified cause.
Notes:
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 exception unsupportedPolicyNames
- The names of elements in the Policy which were not supported UnsupportedPolicyRequestFault
- public UnsupportedPolicyRequestFault( java.lang.String message,
- java.lang.Throwable cause,
- javax.xml.namespace.QName[] unsupportedPolicyNames)
Create an instance of the fault with the specified unsupported policy element
names and containing the specified message
as a description and with the specified cause.
Notes:
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 exception unsupportedPolicyNames
- The names of elements in the Policy which were not supported Method Detail
getUnsupportedPolicyNames
- public javax.xml.namespace.QName[] getUnsupportedPolicyNames( )
Get the names of the elements of the Policy which were not supported.
Returns:
The names of elements in the Policy which were not supported
setUnsupportedPolicyNames
- public void setUnsupportedPolicyNames( javax.xml.namespace.QName[] unsupportedPolicyNames)
Set the names of the elements of the Policy which were not supported.
Parameters:
unsupportedPolicyNames
- The names of elements in the Policy which were not supported getMessage
- public java.lang.String getMessage( )
Get the message for this fault. This method overrides the implementation
in
java.lang.Throwable
to return the text of the first description
in the sequence of descriptions belonging to the fault.
Overrides:
getMessage
in class java.lang.Throwable
See Also:
Throwable.getMessage()
initCause
- public java.lang.Throwable initCause( java.lang.Throwable throwable)
Overrides:
initCause
in class java.lang.Throwable
See Also:
Throwable.initCause(java.lang.Throwable)
setUnsupportedPolicyNames(QName[])
will be necessary, to set the required UnsupportedPolicy values