OctaviusException

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.

Parameters

message

The exception identifier, formatted as EXCEPTION_NAME[:REASON_ENUM] for programmatic filtering.

cause

The underlying exception that caused this failure, if any.

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, sqlState: String? = null, serverErrorMessage: ServerErrorMessage? = null, cause: Throwable? = null)

Properties

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

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

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.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

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