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
public class SqlValidationException extends RuntimeException
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private SqlValidationResult<?>
result
The result of the validation.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SqlValidationException()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> SqlValidationResult<T>
getResult()
Returns the validation result.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
result
private SqlValidationResult<?> result
The result of the validation.
-
-
Constructor Detail
-
SqlValidationException
public SqlValidationException()
Creates a new instance of the exception.
-
SqlValidationException
public SqlValidationException(String message)
Creates a new instance of the exception.- Parameters:
message
- the error message
-
SqlValidationException
public SqlValidationException(Throwable cause)
Creates a new instance of the exception.- Parameters:
cause
- the error cause
-
SqlValidationException
public SqlValidationException(String message, Throwable cause)
Creates a new instance of the exception.- Parameters:
message
- the error messagecause
- the error cause
-
SqlValidationException
public SqlValidationException(SqlValidationResult<T> result)
Creates a new instance of the exception.- Parameters:
result
- the validation result
-
SqlValidationException
public SqlValidationException(String message, SqlValidationResult<T> result)
Creates a new instance of the exception.- Parameters:
message
- the error messageresult
- the validation result
-
-
Method Detail
-
getResult
public <T> SqlValidationResult<T> getResult()
Returns the validation result.- Returns:
- the validation result
-
-