Package loci.common.services
Class DependencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- loci.common.services.DependencyException
-
- All Implemented Interfaces:
Serializable
public class DependencyException extends Exception
Exception thrown when there is an object instantiation error or error processing dependencies.- Author:
- Chris Allan (callan at blackcat dot ca)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DependencyException(String message)
Default constructor.DependencyException(String message, Class<? extends Service> klass)
Default constructor.DependencyException(String message, Class<? extends Service> klass, Throwable cause)
Default constructor.DependencyException(Throwable cause)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Service>
getFailureClass()
Returns the class that was used during a failed instantiation.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
DependencyException
public DependencyException(String message)
Default constructor.- Parameters:
message
- Error message.
-
DependencyException
public DependencyException(String message, Class<? extends Service> klass)
Default constructor.- Parameters:
message
- Error message.klass
- Failed instantiation class.
-
DependencyException
public DependencyException(String message, Class<? extends Service> klass, Throwable cause)
Default constructor.- Parameters:
message
- Error message.klass
- Failed instantiation class.cause
- Upstream exception.
-
DependencyException
public DependencyException(Throwable cause)
Default constructor.- Parameters:
cause
- Upstream exception.
-
-