CodecException

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.

Parameters

cause

The underlying exception that caused this failure.

Constructors

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

Properties

Link copied to clipboard

Indicates whether the failure happened during encoding or decoding.

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The Kotlin class associated with the operation, if known.

Link copied to clipboard
open val message: String?
Link copied to clipboard

The PostgreSQL type name associated with the operation, if known.

Link copied to clipboard
val oid: Int?

The PostgreSQL OID associated with the operation, if known.

Link copied to clipboard

The context of the query that resulted in this exception, if applicable.

Link copied to clipboard

The PostgreSQL type schema associated with the operation, if known.

Link copied to clipboard

The raw error message received from the database, if applicable.

Link copied to clipboard

The SQL state code associated with the error, if applicable.

Link copied to clipboard
val value: Any?

The value that failed to process.

Functions

Link copied to clipboard

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

Link copied to clipboard
open override fun getDetailedMessage(): String

Provides a detailed, human-readable description of the error.

Link copied to clipboard
open override fun toString(): String