/** * <p> * Create a <code>JobPersistenceException</code> with the given message * and cause. * </p> */ public JobPersistenceException(String msg, Throwable cause) { super(msg, cause); setErrorCode(ERR_PERSISTENCE); }
/** * <p> * Create a <code>JobPersistenceException</code> with the given message. * </p> */ public JobPersistenceException(String msg) { super(msg); setErrorCode(ERR_PERSISTENCE); }
/** * <p> * Create a <code>JobPersistenceException</code> with the given message * and cause. * </p> */ public JobPersistenceException(String msg, Throwable cause) { super(msg, cause); setErrorCode(ERR_PERSISTENCE); }
/** * <p> * Create a <code>JobPersistenceException</code> with the given message. * </p> */ public JobPersistenceException(String msg) { super(msg); setErrorCode(ERR_PERSISTENCE); }
public void execute(Connection conn) throws JobPersistenceException { if (newJob.isVolatile() && !newTrigger.isVolatile()) { JobPersistenceException jpe = new JobPersistenceException( "Cannot associate non-volatile trigger with a volatile job!"); jpe.setErrorCode(SchedulerException.ERR_CLIENT_ERROR); throw jpe; } storeJob(conn, ctxt, newJob, false); storeTrigger(conn, ctxt, newTrigger, newJob, false, Constants.STATE_WAITING, false, false); } });
public void execute(Connection conn) throws JobPersistenceException { if (newJob.isVolatile() && !newTrigger.isVolatile()) { JobPersistenceException jpe = new JobPersistenceException( "Cannot associate non-volatile trigger with a volatile job!"); jpe.setErrorCode(SchedulerException.ERR_CLIENT_ERROR); throw jpe; } storeJob(conn, ctxt, newJob, false); storeTrigger(conn, ctxt, newTrigger, newJob, false, Constants.STATE_WAITING, false, false); } });