Package org.jboss.msc.service
Class ServiceRegistryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jboss.msc.service.ServiceRegistryException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CircularDependencyException
,DuplicateServiceException
,ServiceNotFoundException
public class ServiceRegistryException extends RuntimeException
Base Exception class used for service registry issues.- Author:
- John Bailey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceRegistryException()
Constructs aServiceRegistryException
with no detail message.ServiceRegistryException(String msg)
Constructs aServiceRegistryException
with the specified detail message.ServiceRegistryException(String msg, Throwable cause)
Constructs aServiceRegistryException
with the specified detail message and cause.ServiceRegistryException(Throwable cause)
Constructs aServiceRegistryException
with the specified cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServiceRegistryException
public ServiceRegistryException()
Constructs aServiceRegistryException
with no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.
-
ServiceRegistryException
public ServiceRegistryException(String msg)
Constructs aServiceRegistryException
with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.- Parameters:
msg
- the detail message
-
ServiceRegistryException
public ServiceRegistryException(Throwable cause)
Constructs aServiceRegistryException
with the specified cause. The detail message is set to:(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
ServiceRegistryException
public ServiceRegistryException(String msg, Throwable cause)
Constructs aServiceRegistryException
with the specified detail message and cause.- Parameters:
msg
- the detail messagecause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
-