01: //package sun.misc;
02: package clime.messadmin.providers;
03:
04: /**
05: * From JDK 1.4.2 / 1.5.0
06: * see java.util.ServiceConfigurationError (Java 6+)
07: *
08: * Error thrown when something goes wrong while looking up a service provider.
09: * <p> This error will be thrown in the following situations:
10: * <ul>
11: * <li> The format of a provider-configuration file violates the <a href="Service.html#format">specification</a>;</li>
12: * <li> An <code>IOException</code> occurs while reading a provider-configuration file;</li>
13: * <li> A concrete provider class named in a provider-configuration file cannot be found;</li>
14: * <li> A concrete provider class is not a subclass of the service class;</li>
15: * <li> A concrete provider class cannot be instantiated; or</li>
16: * <li> Some other kind of error occurs.</li>
17: * </ul>
18: * @author Cédrik LIME
19: */
20: public class ServiceConfigurationError extends Error {
21:
22: /**
23: * Constructs a new instance with the specified message.
24: * @param message The message, or <tt>null</tt> if there is no message
25: */
26: public ServiceConfigurationError(String message) {
27: super (message);
28: }
29:
30: /**
31: * Constructs a new instance with the specified cause.
32: * @param cause The cause, or <tt>null</tt> if the cause is nonexistent or unknown
33: * @since 1.4
34: */
35: public ServiceConfigurationError(Throwable cause) {
36: super (cause.getMessage()); //super(cause);
37: }
38:
39: /**
40: * Constructs a new instance with the specified message and cause.
41: * @param msg The message, or <tt>null</tt> if there is no message
42: * @param cause The cause, or <tt>null</tt> if the cause is nonexistent or unknown
43: * @since 1.6
44: */
45: public ServiceConfigurationError(String msg, Throwable cause) {
46: super (msg); //super(msg, cause);
47: }
48: }
|