| java.lang.Object org.continuent.sequoia.common.exceptions.SQLExceptionFactory
SQLExceptionFactory | public class SQLExceptionFactory (Code) | | This class defines a SQLExceptionFactory
author: Marc Wick version: 1.0 |
getSQLException | public static SQLException getSQLException(SQLException sqlEx, String sequoiaMessage)(Code) | | creates a new SQLException with the sequoiaMessage
Parameters: sqlEx - the original exception Parameters: sequoiaMessage - the sequoia message to use for the new sqlexception a new SQLException |
getSQLException | public static SQLException getSQLException(List exceptions, String sequoiaMessage)(Code) | | creates a new SQLException with the sequoiaMessage, if all exceptions in
the list have the same errorcode and sqlstate the returned SQLExcepion will
be constructed with this values otherwise with null and 0
Parameters: exceptions - list of exceptions Parameters: sequoiaMessage - the Sequoia message a new SQLException |
|
|