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: GetTaskoptionsErrorException.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 GetTaskoptionsErrorException extends
14: TaskoptionManagerException {
15: private static final long serialVersionUID = -4348602870066135917L;
16:
17: private int mTaskId = -1;
18:
19: public GetTaskoptionsErrorException(int taskId) {
20: this (taskId, null);
21: }
22:
23: public GetTaskoptionsErrorException(int taskId,
24: DatabaseException cause) {
25: super ("Error while getting the taskoptions for task id '"
26: + taskId + "'.", cause);
27:
28: mTaskId = taskId;
29: }
30:
31: public int getTaskId() {
32: return mTaskId;
33: }
34: }
|