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: ConcludeTaskErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.scheduler.taskmanagers.exceptions;
09:
10: import com.uwyn.rife.scheduler.exceptions.FrequencyException;
11: import com.uwyn.rife.scheduler.exceptions.TaskManagerException;
12:
13: public class ConcludeTaskErrorException extends TaskManagerException {
14: private static final long serialVersionUID = -7412671423693693166L;
15:
16: private int mId = -1;
17:
18: public ConcludeTaskErrorException(int id) {
19: this (id, null);
20: }
21:
22: public ConcludeTaskErrorException(int id, FrequencyException cause) {
23: super ("Error while trying to conclude the task with id '" + id
24: + "'.", cause);
25:
26: mId = id;
27: }
28:
29: public int getTaskId() {
30: return mId;
31: }
32: }
|