|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.sqlproc.engine.validation.SqlValidationException
public class SqlValidationException
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
.
Field Summary | |
---|---|
private SqlValidationResult<?> |
result
The result of the validation. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
SqlValidationException()
Creates a new instance of the exception. |
|
SqlValidationException(SqlValidationResult<T> result)
Creates a new instance of the exception. |
|
SqlValidationException(String message)
Creates a new instance of the exception. |
|
SqlValidationException(String message,
SqlValidationResult<T> result)
Creates a new instance of the exception. |
|
SqlValidationException(String message,
Throwable cause)
Creates a new instance of the exception. |
|
SqlValidationException(Throwable cause)
Creates a new instance of the exception. |
Method Summary | ||
---|---|---|
|
getResult()
Returns the validation result. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private SqlValidationResult<?> result
Constructor Detail |
---|
public SqlValidationException()
public SqlValidationException(String message)
message
- the error messagepublic SqlValidationException(Throwable cause)
cause
- the error causepublic SqlValidationException(String message, Throwable cause)
message
- the error messagecause
- the error causepublic SqlValidationException(SqlValidationResult<T> result)
result
- the validation resultpublic SqlValidationException(String message, SqlValidationResult<T> result)
message
- the error messageresult
- the validation resultMethod Detail |
---|
public <T> SqlValidationResult<T> getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |