|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.jmonks.batch.framework.config.ConfigurationException
ConfigurationException defines the problems in either framework configuration or job configuration. Since the configuration exceptions are cannot be detected untile the runtime, this has been defined as Runtime exception. This will have the component name identifies either framework configuration or job configuration and the message explains the complete problem.
Field Summary | |
static java.lang.String |
FRAMEWORK_CONFIG
Constant defines the source of framework config component. |
static java.lang.String |
JOB_CONFIG
Constant defines the source of job config component. |
static java.lang.String |
JOB_CONFIG_FACTORY_CONFIG
Constant defines the source of job config factory config component. |
static java.lang.String |
JOB_CONNECTOR_CONFIG
Constant defines the source of job connector config component. |
static java.lang.String |
JOB_CONTROLLER_CONFIG
Constant defines the source of controller config component. |
static java.lang.String |
LOGGING_CONFIG
Constant defines the source of logging config component. |
static java.lang.String |
REPOSITORY_CONFIG
Constant defines the source of repository config component. |
Constructor Summary | |
ConfigurationException(java.lang.String exceptionComponent,
java.lang.String message)
Constructs an instance of ConfigurationException with the specified component
name and the message. |
Method Summary | |
ErrorCode |
getErrorCode()
Traslates the configuration exception into error code to be retruned to the clients. |
java.lang.String |
getExceptionComponent()
Returns the componenet caused this exception. |
java.lang.String |
toString()
Returns the string representation of ConfigurationException class in the format {ConfigurationException [component = value] [message = value]} |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String FRAMEWORK_CONFIG
public static final java.lang.String JOB_CONFIG
public static final java.lang.String JOB_CONFIG_FACTORY_CONFIG
public static final java.lang.String JOB_CONTROLLER_CONFIG
public static final java.lang.String LOGGING_CONFIG
public static final java.lang.String REPOSITORY_CONFIG
public static final java.lang.String JOB_CONNECTOR_CONFIG
Constructor Detail |
public ConfigurationException(java.lang.String exceptionComponent, java.lang.String message)
ConfigurationException
with the specified component
name and the message.
exceptionComponent
- Specifies the source component of this exception.message
- Messages states the problem.
java.lang.IllegalArgumentException
- If exceptionComponent argument is null.Method Detail |
public java.lang.String getExceptionComponent()
public ErrorCode getErrorCode()
public java.lang.String toString()
Returns the string representation of ConfigurationException class in the format
{ConfigurationException [component = value] [message = value]}
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |