IBM WebSphere Application ServerTM
Release 8

com.ibm.task.api
Class WrongMessageTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.task.api.TaskException
              extended by com.ibm.task.api.WrongMessageTypeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CoreOTaskServiceResultHasInvalidFaultMessageTypeException, CoreOTaskServiceResultHasInvalidOutputMessageTypeException, WrongFaultMessageTypeException, WrongInputMessageTypeException, WrongOutputMessageTypeException

public class WrongMessageTypeException
extends TaskException

Exception class for error message Api.WrongMessageType.
Thrown when: A message is passed that is not an instance of the expected type.
User action: Pass a message of the expected message type.

Since:
5.1.1
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
  WrongMessageTypeException(java.lang.Object[] vars)
          Constructor.
  WrongMessageTypeException(java.lang.Object[] vars, java.lang.Throwable cause)
          Constructor.
protected WrongMessageTypeException(java.lang.String key, java.lang.Object[] vars, java.lang.String id, java.lang.Throwable cause)
          Constructor for subclasses only.
protected WrongMessageTypeException(java.lang.String catalog, java.lang.String key, java.lang.Object[] vars, java.lang.String id, java.lang.Throwable cause)
          Constructor for subclasses only.
 
Method Summary
 
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

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

WrongMessageTypeException

public WrongMessageTypeException(java.lang.Object[] vars)
Constructor.

Parameters:
vars - See WrongMessageTypeException(Object[], Throwable)

WrongMessageTypeException

public WrongMessageTypeException(java.lang.Object[] vars,
                                 java.lang.Throwable cause)
Constructor.

Parameters:
vars - An array with 1 substitution variable for CWTKA0004E: Wrong message instance passed for the message type ''{0}''.
{0} is the name of the message type.
cause - The exception that was thrown.

WrongMessageTypeException

protected WrongMessageTypeException(java.lang.String key,
                                    java.lang.Object[] vars,
                                    java.lang.String id,
                                    java.lang.Throwable cause)
Constructor for subclasses only. It has package access so it does not show up in the public Javadoc.

Parameters:
key - The message key.
vars - The values of the message variables. Can be an empty array. If the array contains objects, they must be Serializable.
id - The message identifier.
cause - The exception that was thrown.

WrongMessageTypeException

protected WrongMessageTypeException(java.lang.String catalog,
                                    java.lang.String key,
                                    java.lang.Object[] vars,
                                    java.lang.String id,
                                    java.lang.Throwable cause)
Constructor for subclasses only. It has package access so it does not show up in the public Javadoc.

Parameters:
catalog - The catalog which have to be used to retrieve the message.
key - The message key.
vars - The values of the message variables. Can be an empty array. If the array contains objects, they must be Serializable.
id - The message identifier.
cause - The exception that was thrown.

IBM WebSphere Application ServerTM
Release 8