public class DataLoadSQLException extends DataLoadException
This class defines the exceptions thrown by the data load when SQL related errors occur during
the processing of business object data. A DataLoadSQLException
will not terminate the program execution
until the error tolerance level is reached. When a DataLoadSQLException
is thrown, it will
be treated as 1 error encountered in the load process.
There are several places the DataLoadSQLException
will be thrown:
When the DataLoadSQLException
is thrown the data loader will catch it and will roll back all
of the uncommitted transactions and prints the error message. If the error count reaches to the error tolerance level
a summary report will be printed and the next record will be processed.
DEFAULT_SEVERITY, EMPTY_MSG
Constructor and Description |
---|
DataLoadSQLException()
This is the default constructor for this class,calls super class constructor.
|
DataLoadSQLException(java.lang.String message)
This is a constructor for this class which has one parameter.
|
DataLoadSQLException(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.
|
DataLoadSQLException(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.
|
DataLoadSQLException(java.lang.String message,
java.lang.String className,
java.lang.String methodName)
This is a constructor for this class which has three parameters.
|
DataLoadSQLException(java.lang.String message,
java.lang.String className,
java.lang.String methodName,
java.sql.SQLException ex)
This is a constructor for this class which has four parameters.
|
Modifier and Type | Method and Description |
---|---|
java.sql.SQLException |
getSQLException()
Gets the SQL exception.
|
addApplicationError, addApplicationError, getApplicationErrors, getCorrelationId, getErrorCode, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getMessageParams
public DataLoadSQLException()
public DataLoadSQLException(java.lang.String message)
message
- An DataLoadMessageKeys
object used for describing the exception.public DataLoadSQLException(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 DataLoadSQLException
.methodName
- The name of the method that threw this DataLoadSQLException
.public DataLoadSQLException(java.lang.String message, java.lang.String className, java.lang.String methodName, java.sql.SQLException ex)
message
- An DataLoadMessageKeys
object used for describing the exception.className
- The name of the class that threw this DataLoadSQLException
.methodName
- The name of the method that threw this DataLoadSQLException
.ex
- The SQL exception causing at the original point of failure.public DataLoadSQLException(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 DataLoadSQLException
.methodName
- The name of the method that threw this DataLoadSQLException
.public DataLoadSQLException(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 DataLoadSQLException
.methodName
- The name of the method that threw this DataLoadSQLException
.cause
- The exception causing at the original point of failure.