Package-level declarations

Types

Link copied to clipboard

Represents the action (encoding or decoding) during which a codec error occurred.

Link copied to clipboard
class CodecException(val action: CodecAction, val value: Any?, val name: String, val schema: String = "", val oid: Int? = null, val kotlinClass: KClass<*>? = null, cause: Exception) : OctaviusException

Exception thrown when encoding or decoding a value to/from a PostgreSQL representation fails.

Link copied to clipboard

Exception thrown when a transaction fails due to concurrency issues like deadlocks, lock unavailability, or serialization failures.

Link copied to clipboard

Categorizes the specific reason why a ConcurrencyException was thrown.

Link copied to clipboard

Exception thrown when a database operation violates a defined constraint (e.g., unique index, foreign key, check constraint).

Link copied to clipboard

Represents specific types of database constraint violations that can occur during query execution.

Link copied to clipboard
class DatabaseSystemException(val details: String, sqlState: String, serverErrorMessage: ServerErrorMessage) : OctaviusException

Exception thrown when a generic database system error occurs.

Link copied to clipboard
class DataException(val reason: DataExceptionReason, sqlState: String, serverErrorMessage: ServerErrorMessage) : OctaviusException

Exception thrown when an operation fails due to invalid data values during execution.

Link copied to clipboard

Categorizes the specific reason why a DataException was thrown.

Link copied to clipboard

Exception thrown when a query execution is aborted by the database engine (e.g. due to a statement timeout or manual cancel request).

Link copied to clipboard

Categorizes the specific reason why a ExecutionAbortedException was thrown.

Link copied to clipboard
class InitializationException(val reason: InitializationExceptionReason, val details: String? = null, cause: Throwable? = null, sqlState: String? = null, serverErrorMessage: ServerErrorMessage? = null) : OctaviusException

Exception thrown when the driver fails to establish a connection or authenticate with the database server.

Link copied to clipboard

Represents the specific reason for an initialization failure during database connection or authentication.

Link copied to clipboard

Exception thrown when the driver attempts an operation that is not allowed in the current state or context.

Link copied to clipboard

Represents the specific reason for an invalid operation.

Link copied to clipboard
class MappingException(val reason: MappingExceptionReason, val details: String, cause: Throwable? = null, val path: MutableList<String> = mutableListOf()) : OctaviusException

Exception thrown when a type conversion or data mapping operation fails.

Link copied to clipboard

Represents the specific reason for a mapping failure.

Link copied to clipboard
class NetworkException(val reason: NetworkExceptionReason, val details: String? = null, cause: Throwable? = null, sqlState: String? = "08006", serverErrorMessage: ServerErrorMessage? = null) : OctaviusException

Exception thrown when a network error disrupts communication with the database server.

Link copied to clipboard

Represents specific types of network-related errors that can occur during database communication.

Link copied to clipboard
abstract class OctaviusException(message: String, val sqlState: String? = null, val serverErrorMessage: ServerErrorMessage? = null, cause: Throwable? = null) : RuntimeException

Base exception for all errors in the Octavius JDBC driver.

Link copied to clipboard

Exception thrown when the current database user lacks the required privileges to execute a statement or access an object.

Link copied to clipboard

Exception thrown when an assertion inside a PL/pgSQL routine turns out to be false.

Link copied to clipboard

Represents which assertion a PL/pgSQL routine made and the data then falsified.

Link copied to clipboard
class RoutineRaiseException(sqlState: String, serverErrorMessage: ServerErrorMessage) : OctaviusException

Exception thrown when a PL/pgSQL routine raises an error of its own, through RAISE EXCEPTION.

Link copied to clipboard
class SQLExceptionWrapper(val wrappedException: OctaviusException) : SQLException

A wrapper class that adapts an OctaviusException into a standard java.sql.SQLException.

Link copied to clipboard
class StatementException(val reason: StatementExceptionReason, val details: String? = null, val position: Int? = null, sqlState: String? = null, serverErrorMessage: ServerErrorMessage? = null) : OctaviusException

Exception thrown when an error occurs during the parsing, planning, or execution of a SQL statement.

Link copied to clipboard

Represents specific reasons for a SQL statement execution failure.

Link copied to clipboard

Exception thrown when the statement itself is fine and the transaction it arrived in is not.

Link copied to clipboard

Represents the transaction state that made a statement inadmissible.

Link copied to clipboard
class TypeException(val reason: TypeExceptionReason, val oid: Int? = null, val typeName: String? = null, val details: String? = null) : OctaviusException

Exception thrown when type resolution or validation fails within the driver's type registry.

Link copied to clipboard

Represents the reason for a type resolution or validation failure.

Link copied to clipboard
class UncategorizedDatabaseException(val details: String, sqlState: String? = null, serverErrorMessage: ServerErrorMessage? = null) : OctaviusException

Exception thrown for generic or unknown database errors that cannot be mapped to a specific OctaviusException subclass.

Functions

Link copied to clipboard

Finds the Octavius failure behind this throwable, if there is one.