java.util
Class ServiceConfigurationError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.util.ServiceConfigurationError
- All Implemented Interfaces:
- Serializable
public class ServiceConfigurationError
- extends Error
An error thrown when a problem occurs during the loading
of a service provider by a ServiceLoader
. Such
an error can occur for a number of reasons:
- An I/O error occurs
- The configuration file doesn't meet the specifications
- A listed class can not be found
- A listed class does not implement the service
- A listed class can not be instantiated
- Since:
- 1.6
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ServiceConfigurationError
public ServiceConfigurationError(String message)
- Constructs a new
ServiceConfigurationError
with the specified message.
- Parameters:
message
- a message describing the error, or
null
if none is required.
ServiceConfigurationError
public ServiceConfigurationError(String message,
Throwable cause)
- Constructs a new
ServiceConfigurationError
with the specified message and cause.
- Parameters:
message
- a message describing the error, or
null
if none is required.cause
- the cause of the error, or
null
if this is unknown
or inappropriate.