public class DataLoadApplicationException extends DataLoadException
This class defines the exceptions thrown by the DataLoad when application errors occur during
the processing of business data. This is the most common exception used when adding custom mediator or
reader code to data load. A DataLoadApplicationException
will not terminate the program execution
until the error tolerance level is reached. When a DataLoadApplicationException
is thrown, it will
be treated as 1 error encountered in the load process.
This exception is thrown when the dataload logic finds some problems such as certain mandatory value are missing or incorrect, or the CSV file cannot be opened. It can be thrown by any component of the dataload.
When the DataLoadApplicationException
is thrown, the data loader will catch it and print the error message.
If the error count reaches to the error tolerance level, a summary report will be printed and the next data loader
specified in the configuration will be executed.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
DEFAULT_SEVERITY, EMPTY_MSG
Constructor and Description |
---|
DataLoadApplicationException()
This is the default constructor for this class,calls super class constructor.
|
DataLoadApplicationException(java.lang.String message)
This is a constructor for this class which has one parameter.
|
DataLoadApplicationException(java.lang.String message,
java.lang.Object[] param,
java.lang.String className,
java.lang.String methodName)
This is a constructor for this class which has four parameters.
|
DataLoadApplicationException(java.lang.String message,
java.lang.Object[] param,
java.lang.String className,
java.lang.String methodName,
java.lang.Throwable cause)
This is a constructor for this class which has five parameters.
|
DataLoadApplicationException(java.lang.String message,
java.lang.String className,
java.lang.String methodName)
This is a constructor for this class which has three parameters.
|
DataLoadApplicationException(java.lang.String message,
java.lang.String className,
java.lang.String methodName,
java.lang.Throwable cause)
This is a constructor for this class which has four parameters.
|
addApplicationError, addApplicationError, getApplicationErrors, getCorrelationId, getErrorCode, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getMessageParams
public static final java.lang.String COPYRIGHT
public DataLoadApplicationException()
public DataLoadApplicationException(java.lang.String message)
message
- An DataLoadMessageKeys
object used for describing the exception.public DataLoadApplicationException(java.lang.String message, java.lang.String className, java.lang.String methodName)
message
- An DataLoadMessageKeys
object used for describing the exception.className
- The name of the class that threw this DataLoadApplicationException
.methodName
- The name of the method that threw this DataLoadApplicationException
.public DataLoadApplicationException(java.lang.String message, java.lang.String className, java.lang.String methodName, java.lang.Throwable cause)
message
- An DataLoadMessageKeys
object used for describing the exception.className
- The name of the class that threw this DataLoadApplicationException
.methodName
- The name of the method that threw this DataLoadApplicationException
.cause
- The exception causing at the original point of failure.public DataLoadApplicationException(java.lang.String message, java.lang.Object[] param, java.lang.String className, java.lang.String methodName)
message
- An DataLoadMessageKeys
object used for describing the exception.param
- An Object
array of parameter values to be passed to the message.className
- The name of the class that threw this DataLoadApplicationException
.methodName
- The name of the method that threw this DataLoadApplicationException
.public DataLoadApplicationException(java.lang.String message, java.lang.Object[] param, java.lang.String className, java.lang.String methodName, java.lang.Throwable cause)
message
- An DataLoadMessageKeys
object used for describing the exception.param
- An Object
array of parameter values to be passed to the message.className
- The name of the class that threw this DataLoadApplicationException
.methodName
- The name of the method that threw this DataLoadApplicationException
.cause
- The exception causing at the original point of failure.