01: package com.sun.portal.app.sharedtasks.util;
02:
03: /**
04: * Common exception class for Shared Tasks.
05: *
06: * @author ashwin.mathew@sun.com
07: */
08: public class SharedTaskException extends Exception {
09:
10: public static final String CALENDAR_ERROR = "error_calendar";
11:
12: public static final String APPLICATION_ERROR = "error_application";
13:
14: public static final String INVALID_DUE_DATE = "error_task_duedate";
15:
16: public static final String INVALID_RECCURENCE_COUNT = "error_task_recurrencecount";
17:
18: private String errorKey;
19:
20: public SharedTaskException(String errorKey,
21: Throwable nestedThrowable) {
22: super (nestedThrowable);
23: this .errorKey = errorKey;
24: }
25:
26: public SharedTaskException(String errorKey) {
27: this .errorKey = errorKey;
28: }
29:
30: public String getErrorKey() {
31: return errorKey;
32: }
33:
34: }
|