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: DesactivateTaskErrorException.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 DesactivateTaskErrorException extends TaskManagerException {
14: private static final long serialVersionUID = 4625084266066863923L;
15:
16: private int mId = -1;
17:
18: public DesactivateTaskErrorException(int id) {
19: this (id, null);
20: }
21:
22: public DesactivateTaskErrorException(int id, DatabaseException cause) {
23: super ("Error while trying to desactivate the task with id '"
24: + id + "'.", cause);
25:
26: mId = id;
27: }
28:
29: public int getTaskId() {
30: return mId;
31: }
32: }
|