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: AddTaskoptionErrorException.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.Taskoption;
11: import com.uwyn.rife.scheduler.exceptions.TaskoptionManagerException;
12:
13: public class AddTaskoptionErrorException extends
14: TaskoptionManagerException {
15: private static final long serialVersionUID = 4905743175691118664L;
16:
17: private Taskoption mTaskoption = null;
18:
19: public AddTaskoptionErrorException(Taskoption taskoption) {
20: this (taskoption, null);
21: }
22:
23: public AddTaskoptionErrorException(Taskoption taskoption,
24: Throwable cause) {
25: super ("Error while adding taskoption with task id '"
26: + taskoption.getTaskId() + "', name '"
27: + taskoption.getName() + "' and value '"
28: + taskoption.getValue() + "'.", cause);
29:
30: mTaskoption = taskoption;
31: }
32:
33: public Taskoption getTaskoption() {
34: return mTaskoption;
35: }
36: }
|