com.ibm.tivoli.maximo.dbmanage.connection

Class WrappedSQLException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.sql.SQLException
          • com.ibm.tivoli.maximo.dbmanage.connection.WrappedSQLException
  • All Implemented Interfaces:
    MaximoSQLException, java.io.Serializable, java.lang.Iterable


    public class WrappedSQLException
    extends java.sql.SQLException
    implements MaximoSQLException
    Used to wrap exceptions that were caught.
    See Also:
    This class and it's sub-classes catch SQLExceptions in an attempt handle the exception automatically. In the event that the exception can't be handled, this object is created with the original exception as it's cause., Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      WrappedSQLException(java.lang.Exception wrapped) 
      WrappedSQLException(java.lang.String errorGroup, java.lang.String errorKey, java.lang.Object[] params, java.lang.Exception wrapped) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getDefaultMessage()
      Give the default message, for when the message isn't found in the message table.
      int getErrorCode() 
      java.lang.String getErrorGroup()
      Give the error group.
      java.lang.String getErrorKey() 
      java.lang.Object[] getParameters() 
      java.lang.String toString() 
      • Methods inherited from class java.sql.SQLException

        getNextException, getSQLState, iterator, setNextException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • WrappedSQLException

        public WrappedSQLException(java.lang.Exception wrapped)
      • WrappedSQLException

        public WrappedSQLException(java.lang.String errorGroup,
                                   java.lang.String errorKey,
                                   java.lang.Object[] params,
                                   java.lang.Exception wrapped)
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Overrides:
        getErrorCode in class java.sql.SQLException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • getDefaultMessage

        public java.lang.String getDefaultMessage()
        Description copied from interface: MaximoSQLException
        Give the default message, for when the message isn't found in the message table.
        Specified by:
        getDefaultMessage in interface MaximoSQLException