ldbc.connector.exception

Members list

Type members

Classlikes

class BatchUpdateException(message: String, updateCounts: List[Long], sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String]) extends SQLException

The subclass of [[SQLException]] thrown when an error occurs during a batch update operation. In addition to the information provided by [[SQLException]], a BatchUpdateException provides the update counts for all commands that were executed successfully during the batch update, that is, all commands that were executed before the error occurred. The order of elements in an array of update counts corresponds to the order in which commands were added to the batch.

The subclass of [[SQLException]] thrown when an error occurs during a batch update operation. In addition to the information provided by [[SQLException]], a BatchUpdateException provides the update counts for all commands that were executed successfully during the batch update, that is, all commands that were executed before the error occurred. The order of elements in an array of update counts corresponds to the order in which commands were added to the batch.

Attributes

Source
BatchUpdateException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class EofException(bytesRequested: Int, bytesRead: Int) extends SQLException

Attributes

Source
EofException.scala
Supertypes
trait Product
trait Equals
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLClientInfoException(message: String) extends SQLException

The subclass of [[SQLException]] is thrown when one or more client info properties could not be set on a Connection. In addition to the information provided by SQLException, a SQLClientInfoException provides a list of client info properties that were not set.

The subclass of [[SQLException]] is thrown when one or more client info properties could not be set on a Connection. In addition to the information provided by SQLException, a SQLClientInfoException provides a list of client info properties that were not set.

Attributes

Source
SQLClientInfoException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLDataException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends SQLNonTransientException

The subclass of [[SQLException]] thrown when the SQLState class value is '22', or under vendor-specified conditions. This indicates various data errors, including but not limited to data conversion errors, division by 0, and invalid arguments to functions.

The subclass of [[SQLException]] thrown when the SQLState class value is '22', or under vendor-specified conditions. This indicates various data errors, including but not limited to data conversion errors, division by 0, and invalid arguments to functions.

Attributes

Source
SQLDataException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends Exception

An exception that provides information on a database access error or other errors.

Each SQLException provides several kinds of information:

  • a string describing the error. This is used as the Java Exception message, available via the method getMessage.
  • a "SQLstate" string, which follows either the XOPEN SQLstate conventions or the SQL:2003 conventions. The values of the SQLState string are described in the appropriate spec. The DatabaseMetaData method getSQLStateType can be used to discover whether the driver returns the XOPEN type or the SQL:2003 type.
  • an integer error code that is specific to each vendor. Normally this will be the actual error code returned by the underlying database.
  • a chain to a next Exception. This can be used to provide additional error information.
  • the causal relationship, if any for this SQLException.

Attributes

Source
SQLException.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class SQLFeatureNotSupportedException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String]) extends SQLNonTransientException

The subclass of [[SQLException]] thrown when the SQLState class value is '0A' ( the value is 'zero' A).

The subclass of [[SQLException]] thrown when the SQLState class value is '0A' ( the value is 'zero' A).

  • no support for an optional feature
  • no support for an optional overloaded method
  • no support for an optional mode for a method. The mode for a method is determined based on constants passed as parameter values to a method

Attributes

Companion
object
Source
SQLFeatureNotSupportedException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SQLFeatureNotSupportedException.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class SQLIntegrityConstraintViolationException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends SQLNonTransientException

The subclass of [[SQLException]] thrown when the SQLState class value is '23', or under vendor-specified conditions. This indicates that an integrity constraint (foreign key, primary key or unique key) has been violated.

The subclass of [[SQLException]] thrown when the SQLState class value is '23', or under vendor-specified conditions. This indicates that an integrity constraint (foreign key, primary key or unique key) has been violated.

Attributes

Source
SQLIntegrityConstraintViolationException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLInvalidAuthorizationSpecException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends SQLNonTransientException

The subclass of [[SQLException]] thrown when the SQLState class value is '28', or under vendor-specified conditions. This indicates that the authorization credentials presented during connection establishment are not valid.

The subclass of [[SQLException]] thrown when the SQLState class value is '28', or under vendor-specified conditions. This indicates that the authorization credentials presented during connection establishment are not valid.

Attributes

Source
SQLInvalidAuthorizationSpecException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLNonTransientException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends SQLException

The subclass of [[SQLException]] thrown when an instance where a retry of the same operation would fail unless the cause of the SQLException is corrected.

The subclass of [[SQLException]] thrown when an instance where a retry of the same operation would fail unless the cause of the SQLException is corrected.

Attributes

Source
SQLNonTransientException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class SQLRecoverableException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String]) extends SQLException

The subclass of [[SQLException]] thrown in situations where a previously failed operation might be able to succeed if the application performs some recovery steps and retries the entire transaction or in the case of a distributed transaction, the transaction branch. At a minimum, the recovery operation must include closing the current connection and getting a new connection.

The subclass of [[SQLException]] thrown in situations where a previously failed operation might be able to succeed if the application performs some recovery steps and retries the entire transaction or in the case of a distributed transaction, the transaction branch. At a minimum, the recovery operation must include closing the current connection and getting a new connection.

Attributes

Source
SQLRecoverableException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLSyntaxErrorException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String]) extends SQLNonTransientException

The subclass of [[SQLException]] thrown when the SQLState class value is '42', or under vendor-specified conditions. This indicates that the in-progress query has violated SQL syntax rules.

The subclass of [[SQLException]] thrown when the SQLState class value is '42', or under vendor-specified conditions. This indicates that the in-progress query has violated SQL syntax rules.

Attributes

Source
SQLSyntaxErrorException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLTimeoutException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String]) extends SQLTransientException

The subclass of `[[SQLException]]` thrown when the timeout specified by Statement.setQueryTimeout, DriverManager.setLoginTimeout, DataSource.setLoginTimeout,XADataSource.setLoginTimeout has expired.

This exception does not correspond to a standard SQLState.

Attributes

Source
SQLTimeoutException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLTransactionRollbackException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends SQLTransientException

The subclass of [[SQLException]] thrown when the SQLState class value is '40', or under vendor-specified conditions. This indicates that the current statement was automatically rolled back by the database because of deadlock or other transaction serialization failures.

The subclass of [[SQLException]] thrown when the SQLState class value is '40', or under vendor-specified conditions. This indicates that the current statement was automatically rolled back by the database because of deadlock or other transaction serialization failures.

Attributes

Source
SQLTransactionRollbackException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLTransientConnectionException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends SQLTransientException

The subclass of [[SQLException]] for the SQLState class value '08', or under vendor-specified conditions. This indicates that the connection operation that failed might be able to succeed if the operation is retried without any application-level changes.

The subclass of [[SQLException]] for the SQLState class value '08', or under vendor-specified conditions. This indicates that the connection operation that failed might be able to succeed if the operation is retried without any application-level changes.

Attributes

Source
SQLTransientConnectionException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class SQLTransientException(message: String, sqlState: Option[String], vendorCode: Option[Int], sql: Option[String], detail: Option[String], hint: Option[String], params: SortedMap[Int, Parameter]) extends SQLException

The subclass of [[SQLException]] is thrown in situations where a previously failed operation might be able to succeed when the operation is retried without any intervention by application-level functionality.

The subclass of [[SQLException]] is thrown in situations where a previously failed operation might be able to succeed when the operation is retried without any intervention by application-level functionality.

Attributes

Source
SQLTransientException.scala
Supertypes
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
case class UnknownPacketException(message: String, detail: Option[String]) extends SQLException

Attributes

Source
UnknownPacketException.scala
Supertypes
trait Product
trait Equals
class SQLException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all