Package org.h2.jdbc

Class JdbcSQLIntegrityConstraintViolationException

All Implemented Interfaces:
Serializable, Iterable<Throwable>, JdbcException

public final class JdbcSQLIntegrityConstraintViolationException extends SQLIntegrityConstraintViolationException implements JdbcException
Represents a database exception.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • originalMessage

      private final String originalMessage
    • stackTrace

      private final String stackTrace
    • message

      private String message
    • sql

      private String sql
  • Constructor Details

    • JdbcSQLIntegrityConstraintViolationException

      public JdbcSQLIntegrityConstraintViolationException(String message, String sql, String state, int errorCode, Throwable cause, String stackTrace)
      Creates a SQLIntegrityConstraintViolationException.
      Parameters:
      message - the reason
      sql - the SQL statement
      state - the SQL state
      errorCode - the error code
      cause - the exception that was the reason for this exception
      stackTrace - the stack trace
  • Method Details