org.sqlproc.engine.validation
Class SqlValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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
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
<T> SqlValidationResult<T>
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

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 message
cause - 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 message
result - the validation result
Method Detail

getResult

public <T> SqlValidationResult<T> getResult()
Returns the validation result.

Returns:
the validation result


Copyright © 2013. All Rights Reserved.