Package org.sqlproc.engine.validation
Class SqlValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.sqlproc.engine.validation.SqlValidationException
- All Implemented Interfaces:
Serializable
The general runtime exception class for the SQL Processor engine.
This exception can be raised in the process of a CRUD statement execution as the result of the input values
validation. This is just a container for the validation result.
For more information please see SqlValidator
.
- Author:
- Vladimir Hudec
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SqlValidationResult
<?> The result of the validation.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the exception.SqlValidationException
(String message) Creates a new instance of the exception.SqlValidationException
(String message, Throwable cause) Creates a new instance of the exception.SqlValidationException
(String message, SqlValidationResult<T> result) Creates a new instance of the exception.SqlValidationException
(Throwable cause) Creates a new instance of the exception.SqlValidationException
(SqlValidationResult<T> result) Creates a new instance of the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
result
The result of the validation.
-
-
Constructor Details
-
SqlValidationException
public SqlValidationException()Creates a new instance of the exception. -
SqlValidationException
Creates a new instance of the exception.- Parameters:
message
- the error message
-
SqlValidationException
Creates a new instance of the exception.- Parameters:
cause
- the error cause
-
SqlValidationException
Creates a new instance of the exception.- Parameters:
message
- the error messagecause
- the error cause
-
SqlValidationException
Creates a new instance of the exception.- Parameters:
result
- the validation result
-
SqlValidationException
Creates a new instance of the exception.- Parameters:
message
- the error messageresult
- the validation result
-
-
Method Details
-
getResult
Returns the validation result.- Returns:
- the validation result
-