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: UpdateTaskErrorException.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.Task;
12: import com.uwyn.rife.scheduler.exceptions.TaskManagerException;
13:
14: public class UpdateTaskErrorException extends TaskManagerException {
15: private static final long serialVersionUID = 7613535991016387602L;
16:
17: private Task mTask = null;
18:
19: public UpdateTaskErrorException(Task task) {
20: this (task, null);
21: }
22:
23: public UpdateTaskErrorException(Task task, DatabaseException cause) {
24: super ("Error while updating task with id '" + task.getId()
25: + "'.", cause);
26:
27: mTask = task;
28: }
29:
30: public Task getTask() {
31: return mTask;
32: }
33: }
|