Class SqlProcessorException

All Implemented Interfaces:
Serializable

public class SqlProcessorException extends RuntimeException
The general runtime exception class for the SQL Processor engine. This exception can be raised in the process of a META SQL query or a statement execution. It's produced in the JDBC or ORM layer, not in the SQL Processor engine itself. Most of the time it's a wrapper class for the cause exception.

For more info please see the Tutorials.

Author:
Vladimir Hudec
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • sqlCommand

      private String sqlCommand
      The failed SQL command.
  • Constructor Details

    • SqlProcessorException

      public SqlProcessorException()
      Creates a new instance of the exception.
    • SqlProcessorException

      public SqlProcessorException(String message)
      Creates a new instance of the exception.
      Parameters:
      message - the error message
    • SqlProcessorException

      public SqlProcessorException(Throwable cause)
      Creates a new instance of the exception.
      Parameters:
      cause - the error cause
    • SqlProcessorException

      public SqlProcessorException(String message, Throwable cause)
      Creates a new instance of the exception.
      Parameters:
      message - the error message
      cause - the error cause
    • SqlProcessorException

      public SqlProcessorException(Throwable cause, String sqlCommand)
      Creates a new instance of the exception.
      Parameters:
      cause - the error cause
      sqlCommand - the failed SQL command
    • SqlProcessorException

      public SqlProcessorException(String message, Throwable cause, String sqlCommand)
      Creates a new instance of the exception.
      Parameters:
      message - the error message
      cause - the error cause
      sqlCommand - the failed SQL command
  • Method Details

    • getSqlCommand

      public String getSqlCommand()
      Returns the failed SQL command.
      Returns:
      the failed SQL command
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable