01: /*
02: * ServiceRegistryException.java
03: *
04: * Created on January 10, 2005, 4:05 PM
05: */
06: package com.sun.portal.service.serviceregistry;
07:
08: import java.lang.Exception;
09:
10: import java.io.PrintWriter;
11: import java.io.BufferedReader;
12: import java.io.PrintStream;
13: import java.io.PrintWriter;
14:
15: import com.sun.portal.service.ServiceException;
16:
17: /**
18: * A ServiceRegistryException is thrown when there is an unrecoverable error
19: * in implementation.
20: **/
21: public class ServiceRegistryException extends ServiceException {
22:
23: protected Throwable wrapped = null;
24:
25: /**
26: * Constructs a new exception with the specified message, indicating an
27: * error in the provider as happened.<br><br>
28: *
29: * @param msg The descriptive message.
30: */
31: public ServiceRegistryException(String msg) {
32: super (msg);
33: }
34:
35: /**
36: * Constructs a new exception with the specified message, and the original
37: * <code>exception</code> or <code>error</code>, indicating an error in the
38: * WSRP as happened.<br><br>
39: *
40: * @param msg The descriptive message.
41: * @param e The original <code>exception</code> or <code>error</code>.
42: */
43: public ServiceRegistryException(String msg, Throwable t) {
44: super (msg, t);
45: wrapped = t;
46: }
47:
48: public ServiceRegistryException(Throwable t) {
49: super(t);
50: }
51:
52: }
|