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: DuplicateTaskoptionException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.scheduler.taskoptionmanagers.exceptions;
09:
10: import com.uwyn.rife.scheduler.exceptions.TaskoptionManagerException;
11:
12: public class DuplicateTaskoptionException extends
13: TaskoptionManagerException {
14: private static final long serialVersionUID = 1952213015727655475L;
15:
16: private int mTaskID = 0;
17: private String mTaskoptionName = null;
18:
19: public DuplicateTaskoptionException(int taskid,
20: String taskoptionName) {
21: super ("The task option with task id '" + taskid
22: + "' and name '" + taskoptionName + "' already exists.");
23:
24: mTaskID = taskid;
25: mTaskoptionName = taskoptionName;
26: }
27:
28: public int getTaskID() {
29: return mTaskID;
30: }
31:
32: public String getTaskoptionName() {
33: return mTaskoptionName;
34: }
35: }
|