Package org.refcodes.component
Class ConfigureException
- 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:
ContextAccessor
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 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
-
Nested classes/interfaces inherited from class org.refcodes.component.InitializeException
InitializeException.InitializeRuntimeException
-
-
Constructor Summary
Constructors Constructor Description ConfigureException(java.lang.Object aContext, java.lang.String message)
Instantiates a new configure exception.ConfigureException(java.lang.Object aContext, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new configure exception.ConfigureException(java.lang.Object aContext, java.lang.String message, java.lang.Throwable cause)
Instantiates a new configure exception.ConfigureException(java.lang.Object aContext, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new configure exception.ConfigureException(java.lang.Object aContext, java.lang.Throwable cause)
Instantiates a new configure exception.ConfigureException(java.lang.Object aContext, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new configure exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContext()
Retrieves the context from the context property.
-
-
-
Constructor Detail
-
ConfigureException
public ConfigureException(java.lang.Object aContext, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new configure exception.- Parameters:
aContext
- the contextaMessage
- the messageaErrorCode
- the error code
-
ConfigureException
public ConfigureException(java.lang.Object aContext, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new configure exception.- Parameters:
aContext
- the contextaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
ConfigureException
public ConfigureException(java.lang.Object aContext, java.lang.String message, java.lang.Throwable cause)
Instantiates a new configure exception.- Parameters:
aContext
- the contextmessage
- the messagecause
- the cause
-
ConfigureException
public ConfigureException(java.lang.Object aContext, java.lang.String message)
Instantiates a new configure exception.- Parameters:
aContext
- the contextmessage
- the message
-
ConfigureException
public ConfigureException(java.lang.Object aContext, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new configure exception.- Parameters:
aContext
- the contextaCause
- the causeaErrorCode
- the error code
-
ConfigureException
public ConfigureException(java.lang.Object aContext, java.lang.Throwable cause)
Instantiates a new configure exception.- Parameters:
aContext
- the contextcause
- the cause
-
-
Method Detail
-
getContext
public java.lang.Object getContext()
Retrieves the context from the context property.- Specified by:
getContext
in interfaceContextAccessor
- Returns:
- The context stored by the context property.
-
-