01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop;
06:
07: public class DesktopError extends Error implements TypedException {
08: private String type = UNKNOWN_TYPE;
09:
10: public DesktopError(String msg) {
11: super (msg);
12: }
13:
14: public DesktopError(String msg, String type) {
15: super (msg);
16: this .type = type;
17: }
18:
19: public DesktopError(String msg, Throwable t) {
20: super (msg, t);
21: }
22:
23: public DesktopError(String msg, Throwable t, String type) {
24: super (msg, t);
25: this .type = type;
26: }
27:
28: public DesktopError(Throwable t) {
29: super (t);
30: }
31:
32: public DesktopError(Throwable t, String type) {
33: super (t);
34: this .type = type;
35: }
36:
37: public String getType() {
38: return type;
39: }
40: }
|