SQLException

ldbc.connector.exception.SQLException
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
Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

def fields: List[Attribute[_]]

Summarize error information into attributes.

Summarize error information into attributes.

Attributes

Source
SQLException.scala

Retrieves the vendor-specific exception code for this SQLException object.

Retrieves the vendor-specific exception code for this SQLException object.

Attributes

Returns

the vendor's error code

Source
SQLException.scala
final override def getMessage: String

Attributes

Definition Classes
Throwable
Source
SQLException.scala

Retrieves the SQLState for this SQLException object.

Retrieves the SQLState for this SQLException object.

Attributes

Returns

the SQLState value

Source
SQLException.scala
def labeled(label: String, s: String): String

Attributes

Source
SQLException.scala

Inherited methods

final def addSuppressed(x$0: Throwable): Unit

Attributes

Inherited from:
Throwable
def fillInStackTrace(): Throwable

Attributes

Inherited from:
Throwable
def getCause(): Throwable

Attributes

Inherited from:
Throwable
def getLocalizedMessage(): String

Attributes

Inherited from:
Throwable
def getStackTrace(): Array[StackTraceElement]

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable
def initCause(x$0: Throwable): Throwable

Attributes

Inherited from:
Throwable
def printStackTrace(x$0: PrintWriter): Unit

Attributes

Inherited from:
Throwable
def printStackTrace(x$0: PrintStream): Unit

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable