java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.component.ComponentException
org.refcodes.component.InitializeException
org.refcodes.component.ConfigureException
- All Implemented Interfaces:
Serializable,ContextAccessor,org.refcodes.exception.ErrorCodeAccessor,org.refcodes.exception.Trap
public class ConfigureException extends InitializeException implements ContextAccessor
Thrown in case initializing a component caused problems. Usually a method
similar to ""initialize(...)" throws such an exception.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.refcodes.component.InitializeException
InitializeException.InitializeRuntimeExceptionNested classes/interfaces inherited from interface org.refcodes.component.ContextAccessor
ContextAccessor.ContextBuilder<CTX,B extends ContextAccessor.ContextBuilder<CTX,B>>, ContextAccessor.ContextMutator<CTX>, ContextAccessor.ContextProperty<CTX>Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty -
Constructor Summary
Constructors Constructor Description ConfigureException(Object aContext, String message)Instantiates a new configure exception.ConfigureException(Object aContext, String aMessage, String aErrorCode)Instantiates a new configure exception.ConfigureException(Object aContext, String message, Throwable cause)Instantiates a new configure exception.ConfigureException(Object aContext, String aMessage, Throwable aCause, String aErrorCode)Instantiates a new configure exception.ConfigureException(Object aContext, Throwable cause)Instantiates a new configure exception.ConfigureException(Object aContext, Throwable aCause, String aErrorCode)Instantiates a new configure exception. -
Method Summary
Modifier and Type Method Description ObjectgetContext()Retrieves the context from the context property.Methods inherited from class org.refcodes.exception.AbstractException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigureException
Instantiates a new configure exception.- Parameters:
aContext- the contextaMessage- the messageaErrorCode- the error code
-
ConfigureException
Instantiates a new configure exception.- Parameters:
aContext- the contextaMessage- the messageaCause- the causeaErrorCode- the error code
-
ConfigureException
Instantiates a new configure exception.- Parameters:
aContext- the contextmessage- the messagecause- the cause
-
ConfigureException
Instantiates a new configure exception.- Parameters:
aContext- the contextmessage- the message
-
ConfigureException
Instantiates a new configure exception.- Parameters:
aContext- the contextaCause- the causeaErrorCode- the error code
-
ConfigureException
Instantiates a new configure exception.- Parameters:
aContext- the contextcause- the cause
-
-
Method Details
-
getContext
Retrieves the context from the context property.- Specified by:
getContextin interfaceContextAccessor- Returns:
- The context stored by the context property.
-