com.ibm.tws.conn.exception
Class ConnException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.tws.util.exception.TWSException
              extended bycom.ibm.tws.conn.exception.ConnException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConnIntegrityException, ConnLockingException, ConnNotFoundException, ConnSecurityException, ConnSymphonyAccessException, ConnTransportException, ConnValidationException

public class ConnException
extends TWSException

This is the root of all exception classes thrown by the TWS connector.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright
 
Constructor Summary
ConnException(java.lang.String currentMessageID)
          Creates a ConnException from the given message ID.
ConnException(java.lang.String currentMessageID, java.lang.Object[] currentArgs)
          Creates a ConnException from the given message ID and arguments.
ConnException(java.lang.String currentMessageID, java.lang.Object[] currentArgs, java.lang.Throwable e)
          Creates a ConnException from the given message ID, arguments and nested cause.
ConnException(java.lang.String currentCatalog, java.lang.String currentMessageID, java.lang.Object[] currentArgs)
          Creates a ConnException from the given catalog, message ID and arguments.
ConnException(java.lang.String currentMessageID, java.lang.Throwable e)
          Creates a ConnException from the given message ID and nested cause.
ConnException(java.lang.Throwable e)
          Creates a ConnException from the given nested cause.
ConnException(TWSException e)
          Creates a ConnException from the given nested exception.
 
Method Summary
protected static java.lang.String[] buildInsert(java.lang.String s)
          This method returns an array with one element.
protected static java.lang.String[] buildInsert2(java.lang.String s1, java.lang.String s2)
          This method returns an array with two elements.
 
Methods inherited from class com.ibm.tws.util.exception.TWSException
getArgs, getCauseMessage, getLocalizedMessage, getLocalizedMessage, getMessage, initialize, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
Copyright

Constructor Detail

ConnException

public ConnException(java.lang.String currentMessageID,
                     java.lang.Object[] currentArgs)
Creates a ConnException from the given message ID and arguments.

Parameters:
currentMessageID - The identifier of the message in the connector's message catalog.
currentArgs - The current arguments of the error message.

ConnException

public ConnException(java.lang.Throwable e)
Creates a ConnException from the given nested cause.

Parameters:
e - The nested cause from which this exception was generated.

ConnException

public ConnException(java.lang.String currentMessageID,
                     java.lang.Throwable e)
Creates a ConnException from the given message ID and nested cause.

Parameters:
currentMessageID - The identifier of the message in the connector's message catalog.
e - The nested cause from which this exception was generated.

ConnException

public ConnException(java.lang.String currentMessageID,
                     java.lang.Object[] currentArgs,
                     java.lang.Throwable e)
Creates a ConnException from the given message ID, arguments and nested cause.

Parameters:
currentMessageID - The identifier of the message in the connector's message catalog.
currentArgs - The current arguments of the error message.
e - The nested cause from which this exception was generated.

ConnException

public ConnException(java.lang.String currentMessageID)
Creates a ConnException from the given message ID.

Parameters:
currentMessageID - The identifier of the message in the connector's message catalog.

ConnException

public ConnException(TWSException e)
Creates a ConnException from the given nested exception.

Parameters:
e - The nested cause from which this exception was generated.

ConnException

public ConnException(java.lang.String currentCatalog,
                     java.lang.String currentMessageID,
                     java.lang.Object[] currentArgs)
Creates a ConnException from the given catalog, message ID and arguments.

Parameters:
currentCatalog - The message catalog to be used.
currentMessageID - The identifier of the message in the message catalog.
currentArgs - The current arguments of the error message.
Method Detail

buildInsert

protected static java.lang.String[] buildInsert(java.lang.String s)
This method returns an array with one element. The element is the string passed in input. It is used to build message with insert.

Parameters:
s - The input string
Returns:
String[] The array element containing only the input string

buildInsert2

protected static java.lang.String[] buildInsert2(java.lang.String s1,
                                                 java.lang.String s2)
This method returns an array with two elements. The elements are the strings passed in input. It is used to build message with insert.

Parameters:
s1 - The first string
s2 - The second string
Returns:
String[] The array element containing the two input strings


Copyright © 2005 IBM All Rights Reserved.