01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: RemoveTaskErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.scheduler.taskmanagers.exceptions;
09:
10: import com.uwyn.rife.database.exceptions.DatabaseException;
11: import com.uwyn.rife.scheduler.exceptions.TaskManagerException;
12:
13: public class RemoveTaskErrorException extends TaskManagerException {
14: private static final long serialVersionUID = 7546246390590430739L;
15:
16: private int mId = -1;
17:
18: public RemoveTaskErrorException(int id) {
19: this (id, null);
20: }
21:
22: public RemoveTaskErrorException(int id, DatabaseException cause) {
23: super ("Error while trying to remove the task with id '" + id
24: + "'.", cause);
25:
26: mId = id;
27: }
28:
29: public int getTaskId() {
30: return mId;
31: }
32: }
|