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: GetTaskoptionErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.scheduler.taskoptionmanagers.exceptions;
09:
10: import com.uwyn.rife.database.exceptions.DatabaseException;
11: import com.uwyn.rife.scheduler.exceptions.TaskoptionManagerException;
12:
13: public class GetTaskoptionErrorException extends
14: TaskoptionManagerException {
15: private static final long serialVersionUID = 3920950726058002527L;
16:
17: private int mTaskId = -1;
18: private String mName = null;
19:
20: public GetTaskoptionErrorException(int taskId, String name) {
21: this (taskId, name, null);
22: }
23:
24: public GetTaskoptionErrorException(int taskId, String name,
25: DatabaseException cause) {
26: super ("Error while getting taskoption with task id '" + taskId
27: + "' and name '" + name + "'.", cause);
28:
29: mTaskId = taskId;
30: mName = name;
31: }
32:
33: public int getTaskId() {
34: return mTaskId;
35: }
36:
37: public String getName() {
38: return mName;
39: }
40: }
|