TypeException

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.

Includes scenarios where a type cannot be found, an incorrect container type is used, or an expected codec is missing.

Constructors

Link copied to clipboard
constructor(reason: TypeExceptionReason, oid: Int? = null, typeName: String? = null, details: String? = null)

Properties

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

Additional human-readable details about the failure.

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

The OID of the type that caused the error, if applicable.

Link copied to clipboard

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

Link copied to clipboard

The specific reason for the type error.

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

The name of the type that caused the error, if applicable.

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