InitializationException
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.
This typically occurs during the initial connection handshake and can be caused by network issues, invalid credentials, unsupported protocols, or incompatible server versions.
Parameters
cause
The underlying exception that caused this failure, if any.
sqlState
The SQL state code returned by the database, if available.
serverErrorMessage
The original error message from the database server, if available.
Constructors
Link copied to clipboard
constructor(reason: InitializationExceptionReason, details: String? = null, cause: Throwable? = null, sqlState: String? = null, serverErrorMessage: ServerErrorMessage? = null)