01: package com.sun.portal.desktop;
02:
03: public class DesktopException extends Exception implements
04: TypedException {
05: protected String type = UNKNOWN_TYPE;
06:
07: public DesktopException(String msg) {
08: super (msg);
09: }
10:
11: public DesktopException(String msg, String type) {
12: super (msg);
13: this .type = type;
14: }
15:
16: public DesktopException(String msg, Throwable t) {
17: super (msg, t);
18: }
19:
20: public DesktopException(String msg, Throwable t, String type) {
21: super (msg, t);
22: this .type = type;
23: }
24:
25: public DesktopException(Throwable t) {
26: super (t);
27: }
28:
29: public DesktopException(Throwable t, String type) {
30: super (t);
31: this .type = type;
32: }
33:
34: public String getType() {
35: return type;
36: }
37: }
|