Module org.refcodes.component
Package org.refcodes.component
Class ConfigureException.ConfigureRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.component.ComponentRuntimeException
org.refcodes.component.LifecycleException.LifecycleRuntimeException
org.refcodes.component.InitializeException.InitializeRuntimeException
org.refcodes.component.ConfigureException.ConfigureRuntimeException
- All Implemented Interfaces:
Serializable
,ContextAccessor
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
- Enclosing class:
- ConfigureException
public static class ConfigureException.ConfigureRuntimeException
extends InitializeException.InitializeRuntimeException
implements ContextAccessor
Thrown in case initializing a component caused problems. Usually a method
similar to ""initialize(...)" throws such an exception.
- See Also:
-
Nested Class Summary
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
ConstructorDescriptionConfigureRuntimeException
(Object aContext, String message) Instantiates a new configure exception.ConfigureRuntimeException
(Object aContext, String aMessage, String aErrorCode) Instantiates a new configure exception.ConfigureRuntimeException
(Object aContext, String message, Throwable cause) Instantiates a new configure exception.ConfigureRuntimeException
(Object aContext, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new configure exception.ConfigureRuntimeException
(Object aContext, Throwable cause) Instantiates a new configure exception.ConfigureRuntimeException
(Object aContext, Throwable aCause, String aErrorCode) Instantiates a new configure exception. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the context from the context property.Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigureRuntimeException
Instantiates a new configure exception.- Parameters:
aContext
- the contextaMessage
- the messageaErrorCode
- the error code
-
ConfigureRuntimeException
public ConfigureRuntimeException(Object aContext, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new configure exception.- Parameters:
aContext
- the contextaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
ConfigureRuntimeException
Instantiates a new configure exception.- Parameters:
aContext
- the contextmessage
- the messagecause
- the cause
-
ConfigureRuntimeException
Instantiates a new configure exception.- Parameters:
aContext
- the contextmessage
- the message
-
ConfigureRuntimeException
Instantiates a new configure exception.- Parameters:
aContext
- the contextaCause
- the causeaErrorCode
- the error code
-
ConfigureRuntimeException
Instantiates a new configure exception.- Parameters:
aContext
- the contextcause
- the cause
-
-
Method Details
-
getContext
Retrieves the context from the context property.- Specified by:
getContext
in interfaceContextAccessor
- Returns:
- The context stored by the context property.
-