com.ibm.websphere.sib.wsn.faults
Class UnacceptableTerminationTimeFault
- java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.websphere.wsrf.BaseFault
com.ibm.websphere.sib.wsn.faults.UnacceptableTerminationTimeFault
All implemented interfaces:
java.io.Serializable
- public class UnacceptableTerminationTimeFault
- extends BaseFault
See Also:
Constructor Summary
Constructor and Description |
---|
UnacceptableTerminationTimeFault()
Default constructor.
|
UnacceptableTerminationTimeFault(EndpointReference originator,ErrorCode errorCode,FaultDescription[] descriptions,IOSerializableSOAPElement faultCause,IOSerializableSOAPElement[] extensibilityElements,Attribute[] attributes,java.util.Calendar minimumTime,java.util.Calendar maximumTime)
Create an instance of the fault from the specified information.
|
UnacceptableTerminationTimeFault(java.lang.String message)
Create an instance of the fault containing the specified message
as a description.
|
UnacceptableTerminationTimeFault(java.lang.String message,java.lang.Throwable cause)
Create an instance of the fault containing the specified message
as a description and with the specified cause.
|
UnacceptableTerminationTimeFault(java.lang.Throwable cause)
Create an instance of the fault with the specified cause.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getMaximumTime()
Get the maximum allowable terminition time.
|
|
getMessage()
Get the message for this fault.
|
|
getMinimumTime()
Get the minimum allowable terminition time.
|
|
initCause(java.lang.Throwable throwable)
|
|
setMaximumTime(java.util.Calendar maximumTime)
Set the maximum allowable terminition time.
|
|
setMinimumTime(java.util.Calendar minimumTime)
Set the minimum allowable terminition time.
|
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
UnacceptableTerminationTimeFault
- public UnacceptableTerminationTimeFault( )
UnacceptableTerminationTimeFault
- public UnacceptableTerminationTimeFault( EndpointReference originator,
- ErrorCode errorCode,
- FaultDescription[] descriptions,
- IOSerializableSOAPElement faultCause,
- IOSerializableSOAPElement[] extensibilityElements,
- Attribute[] attributes,
- java.util.Calendar minimumTime,
- java.util.Calendar maximumTime)
Create an instance of the fault from the specified information. All arguments
are optional.
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 minimumTime
- The minimum time for the intial termination. A null value will be ignored and instead
a default value of the current time at instantiation plus one minute will be used. maximumTime
- The maximum time for the intial termination UnacceptableTerminationTimeFault
- public UnacceptableTerminationTimeFault( java.lang.String message)
Create an instance of the fault containing the specified message
as a description.
The descriptions for the fault may be overridden by calling
The required minimumTime element will be given a default value of the current time at instantiation of the fault plus one minute. This value can be overridden by calling
The descriptions for the fault may be overridden by calling
BaseFault.setDescriptions(com.ibm.websphere.wsrf.FaultDescription[])
The required minimumTime element will be given a default value of the current time at instantiation of the fault plus one minute. This value can be overridden by calling
setMinimumTime(Calendar)
Parameters:
message
- The exception message. This will be stored as
the first fault description. UnacceptableTerminationTimeFault
- public UnacceptableTerminationTimeFault( java.lang.Throwable cause)
Create an instance of the fault 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[])
-
The required minimumTime element will
be given a default value of the current time at instantiation
of the fault plus one minute. This
value can be overridden by calling
setMinimumTime(Calendar)
Parameters:
cause
- The cause of the exception UnacceptableTerminationTimeFault
- public UnacceptableTerminationTimeFault( java.lang.String message,
- java.lang.Throwable cause)
Create an instance of the fault 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[])
-
The required minimumTime element will
be given a default value of the current time at instantiation
of the fault plus one minute. This
value can be overridden by calling
setMinimumTime(Calendar)
Parameters:
message
- The exception message. This will be stored as
the first fault description. cause
- The cause of the exception Method Detail
getMinimumTime
- public java.util.Calendar getMinimumTime( )
Get the minimum allowable terminition time.
Returns:
Returns the minimumTime.
setMinimumTime
- public void setMinimumTime(java.util.Calendar minimumTime)
Set the minimum allowable terminition time.
Parameters:
minimumTime
- The minimumTime to set. A null value will be ignored getMaximumTime
- public java.util.Calendar getMaximumTime( )
Get the maximum allowable terminition time.
Returns:
Returns the maximumTime or null if not specified
setMaximumTime
- public void setMaximumTime(java.util.Calendar maximumTime)
Set the maximum allowable terminition time.
Parameters:
maximumTime
- The maximumTime to set. 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)
setMinimumTime(Calendar)