com.ibm.task.api

Class TaskBusinessException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.task.api.TaskException
  5. extended bycom.ibm.task.api.TaskBusinessException
All implemented interfaces:
java.io.Serializable

  1. public class TaskBusinessException
  2. extends TaskException
A TaskBusinessException wraps fault responses from tasks. This exception is used by the ReplyHandler to report WSDL declared faults.
Since:
6.0
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Constructor Summary

Constructor and Description
TaskBusinessException(java.lang.Object[] vars,java.lang.String faultName,java.io.Serializable faultMessage,java.lang.String wsdlMessageLocalName,java.lang.String wsdlMessageNamespace,java.lang.String xsdTypeLocalName,java.lang.String xsdTypeNamespace)
Constructs an exception object with the specified fault name and message and remembers the values of the message variables passed.

Method Summary

Modifier and Type Method and Description
  1. java.io.Serializable
getFaultMessage()
Returns the fault message.
  1. java.lang.String
getFaultName()
Returns the fault name.
  1. java.lang.String
getWSDLMessageLocalName()
Returns the WSDL message type local name.
  1. java.lang.String
getWSDLMessageNamespace()
Returns the WSDL message type namespace.
  1. java.lang.String
getXSDTypeLocalName()
Returns the XSD type local name.
  1. java.lang.String
getXSDTypeNamespace()
Returns the XSD type namespace.
  1. void
setFaultMessage(java.io.Serializable faultMessage)
Wraps the fault message into a ClientObjectWrapper object.
Methods inherited from class com.ibm.task.api.TaskException
getCause, getMessage, getMessage, getMessageID, getMessageKey, getMessageVariables, getRootCause, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

TaskBusinessException

  1. public TaskBusinessException(java.lang.Object[] vars,
  2. java.lang.String faultName,
  3. java.io.Serializable faultMessage,
  4. java.lang.String wsdlMessageLocalName,
  5. java.lang.String wsdlMessageNamespace,
  6. java.lang.String xsdTypeLocalName,
  7. java.lang.String xsdTypeNamespace)
Constructs an exception object with the specified fault name and message and remembers the values of the message variables passed. The fault message can thus localize the cause of the error.
Parameters:
vars - The values of the message variables. Can be an empty array. If the array contains objects, they must be Serializable.
faultName - The fault name.
faultMessage - The fault message.
wsdlMessageLocalName - WSDL message type local name, if the type of the fault is specifed via a WSDL message, null otherwise.
wsdlMessageNamespace - The WSDL message type namespace, if the type of the fault is specifed via a WSDL message, null otherwise.
xsdTypeLocalName - The XSD message type local name, if the type of the fault is specifed via a single-part type typed WSDL message or via an XSD element or type. In case of an XSD element this is the local name of the XSD type the element refers to. Null otherwise.
xsdTypeNamespace - The XSD message type namespace, if the type of the fault is specifed via a single-part type typed WSDL message or via an XSD element or type. In case of an XSD element this is the namespace of the XSD type the element refers to. Null otherwise.

Method Detail

getFaultMessage

  1. public java.io.Serializable getFaultMessage( )
  2. throws DataHandlingException
Returns the fault message.
Returns:
The message that is associated with the fault.
Throws:
DataHandlingException - Thrown if the message object cannot be deserialized.

getFaultName

  1. public java.lang.String getFaultName( )
Returns the fault name.
Returns:
The fault name.

getWSDLMessageLocalName

  1. public java.lang.String getWSDLMessageLocalName( )
Returns the WSDL message type local name.
Returns:
The local name of the WSDL message, if the type of the fault is specifed via a WSDL message, null otherwise.

getWSDLMessageNamespace

  1. public java.lang.String getWSDLMessageNamespace( )
Returns the WSDL message type namespace.
Returns:
The namespace of the WSDL message, if the type of the fault is specifed via a WSDL message, null otherwise.

getXSDTypeLocalName

  1. public java.lang.String getXSDTypeLocalName( )
Returns the XSD type local name.
Returns:
The local name of the XSD type, if the type of the fault is specifed via a single-part type typed WSDL message or via an XSD element or type. In case of an XSD element this is the local name of the XSD type the element refers to. Null otherwise.

getXSDTypeNamespace

  1. public java.lang.String getXSDTypeNamespace( )
Returns the XSD type namespace.
Returns:
The namespace of the XSD type, if the type of the fault is specifed via a single-part type typed WSDL message or via an XSD element or type. In case of an XSD element this is the namespace of the XSD type the element refers to. Null otherwise.

setFaultMessage

  1. public void setFaultMessage(java.io.Serializable faultMessage)
Wraps the fault message into a ClientObjectWrapper object.
Parameters:
faultMessage - The fault message.