- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.refcodes.exception.AbstractException
-
- org.refcodes.component.ComponentException
-
- org.refcodes.component.LifecycleException
-
- 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 Modifier and Type Class Description static class
ConfigureException.ConfigureRuntimeException
Thrown in case initializing a component caused problems.-
Nested classes/interfaces inherited from class org.refcodes.component.InitializeException
InitializeException.InitializeRuntimeException
-
Nested classes/interfaces inherited from class org.refcodes.component.LifecycleException
LifecycleException.LifecycleRuntimeException
-
Nested 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getContext()
Retrieves the context from the context property.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConfigureException
public ConfigureException(Object aContext, String aMessage, String aErrorCode)
Instantiates a new configure exception.- Parameters:
aContext
- the contextaMessage
- the messageaErrorCode
- the error code
-
ConfigureException
public ConfigureException(Object aContext, String aMessage, Throwable aCause, String aErrorCode)
Instantiates a new configure exception.- Parameters:
aContext
- the contextaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
ConfigureException
public ConfigureException(Object aContext, String message, Throwable cause)
Instantiates a new configure exception.- Parameters:
aContext
- the contextmessage
- the messagecause
- the cause
-
ConfigureException
public ConfigureException(Object aContext, String message)
Instantiates a new configure exception.- Parameters:
aContext
- the contextmessage
- the message
-
ConfigureException
public ConfigureException(Object aContext, Throwable aCause, String aErrorCode)
Instantiates a new configure exception.- Parameters:
aContext
- the contextaCause
- the causeaErrorCode
- the error code
-
-
Method Detail
-
getContext
public Object getContext()
Retrieves the context from the context property.- Specified by:
getContext
in interfaceContextAccessor
- Returns:
- The context stored by the context property.
-
-