# ExposedSQLException

class ExposedSQLException(cause: Throwable?, val contexts: List<StatementContext>, transaction: Transaction) : SQLException

An exception that provides information about a database access error, within the contexts of the executed statements that caused the exception.

## Constructors

ExposedSQLException
Link copied to clipboard
constructor(cause: Throwable?, contexts: List<StatementContext>, transaction: Transaction)

## Properties

cause
Link copied to clipboard
open val cause: Throwable?
contexts
Link copied to clipboard
val contexts: List<StatementContext>
errorCode
Link copied to clipboard
open override val errorCode: Int
message
Link copied to clipboard
open val message: String?
nextException
Link copied to clipboard
open var nextException: SQLException?
sqlState
Link copied to clipboard
open override val sqlState: String

## Functions

appendTo
Link copied to clipboard
fun <T> Iterable<T>.appendTo(builder: QueryBuilder, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", transform: QueryBuilder.(T) -> Unit): QueryBuilder

Appends all the elements separated using separator and using the given prefix and postfix if supplied.

causedByQueries
Link copied to clipboard
fun causedByQueries(): List<String>
getErrorCode
Link copied to clipboard
open override fun getErrorCode(): Int
getSQLState
Link copied to clipboard
open override fun getSQLState(): String
iterator
Link copied to clipboard
open operator fun iterator(): MutableIterator<Throwable?>
toString
Link copied to clipboard
open override fun toString(): String