| java.lang.Object org.apache.ojb.broker.util.ExceptionHelper
ExceptionHelper | abstract public class ExceptionHelper (Code) | | A helper class which endorse dealing with exceptions.
version: $Id: ExceptionHelper.java,v 1.2.2.3 2005/12/21 22:27:47 tomdz Exp $ |
Method Summary | |
public static PersistenceBrokerSQLException | generateException(String message, SQLException ex, String sql, Logger logger) Method which support the conversion of
java.sql.SQLException to
OJB's runtime exception (with additional message details).
Parameters: message - The error message to use, if null a standard message is used. Parameters: ex - The exception to convert (mandatory). Parameters: sql - The used sql-statement or null. Parameters: logger - The org.apache.ojb.broker.util.logging.Logger to log an detailed messageto the specified org.apache.ojb.broker.util.logging.Logger or null to skip logging message. | public static PersistenceBrokerSQLException | generateException(SQLException ex, String sql, ClassDescriptor cld, Logger logger, Object obj) Method which support the conversion of
java.sql.SQLException to
OJB's runtime exception (with additional message details).
Parameters: ex - The exception to convert (mandatory). Parameters: sql - The used sql-statement or null. Parameters: cld - The org.apache.ojb.broker.metadata.ClassDescriptor of the target object or null. Parameters: logger - The org.apache.ojb.broker.util.logging.Logger to log an detailed messageto the specified org.apache.ojb.broker.util.logging.Logger or null to skip logging message. Parameters: obj - The target object or null. | public static PersistenceBrokerSQLException | generateException(SQLException ex, String sql, ClassDescriptor cld, ValueContainer[] values, Logger logger, Object obj) Method which support the conversion of
java.sql.SQLException to
OJB's runtime exception (with additional message details).
Parameters: ex - The exception to convert (mandatory). Parameters: sql - The used sql-statement or null. Parameters: cld - The org.apache.ojb.broker.metadata.ClassDescriptor of the target object or null. Parameters: values - The values set in prepared statement or null. Parameters: logger - The org.apache.ojb.broker.util.logging.Logger to log an detailed messageto the specified org.apache.ojb.broker.util.logging.Logger or null to skip logging message. Parameters: obj - The target object or null. | public static PersistenceBrokerSQLException | generateException(String message, SQLException ex, String sql, ClassDescriptor cld, ValueContainer[] values, Logger logger, Object obj) Method which support the conversion of
java.sql.SQLException to
OJB's runtime exception (with additional message details).
Parameters: message - The error message to use, if null a standard message is used. Parameters: ex - The exception to convert (mandatory). Parameters: sql - The used sql-statement or null. Parameters: cld - The org.apache.ojb.broker.metadata.ClassDescriptor of the target object or null. Parameters: values - The values set in prepared statement or null. Parameters: logger - The org.apache.ojb.broker.util.logging.Logger to log an detailed messageto the specified org.apache.ojb.broker.util.logging.Logger or null to skip logging message. Parameters: obj - The target object or null. |
|
|