/** * The connection returned from this driver was null, the driver may be * missing(using the default) or the wrong one for the database. * * @param exception * @param driver * @return */ public static DatabaseException unableToAcquireConnectionFromDriverException(SQLException exception, String driver, String user, String url) { DatabaseException databaseException = unableToAcquireConnectionFromDriverException(driver, user, url); databaseException.setInternalException(exception); return databaseException; }
/** * The connection returned from this driver was null, the driver may be * missing(using the default) or the wrong one for the database. * * @param exception * @param driver * @return */ public static DatabaseException unableToAcquireConnectionFromDriverException(SQLException exception, String driver, String user, String url) { DatabaseException databaseException = unableToAcquireConnectionFromDriverException(driver, user, url); databaseException.setInternalException(exception); return databaseException; }
/** * The connection returned from this driver was null, the driver may be * missing(using the default) or the wrong one for the database. * * @param exception * @param driver * @return */ public static DatabaseException unableToAcquireConnectionFromDriverException(SQLException exception, String driver, String user, String url) { DatabaseException databaseException = unableToAcquireConnectionFromDriverException(driver, user, url); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException cannotRegisterSynchronizatonListenerForUnitOfWork(Exception e) { Object[] args = { e }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK, args)); databaseException.setErrorCode(CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK); databaseException.setInternalException(e); return databaseException; }
public static DatabaseException configurationErrorNewInstanceIllegalAccessException(IllegalAccessException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException configurationErrorNewInstanceIllegalAccessException(IllegalAccessException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException configurationErrorNewInstanceIllegalAccessException(IllegalAccessException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException cannotRegisterSynchronizatonListenerForUnitOfWork(Exception e) { Object[] args = { e }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK, args)); databaseException.setErrorCode(CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK); databaseException.setInternalException(e); return databaseException; }
public static DatabaseException cannotRegisterSynchronizatonListenerForUnitOfWork(Exception e) { Object[] args = { e }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK, args)); databaseException.setErrorCode(CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK); databaseException.setInternalException(e); return databaseException; }