NetworkException
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.
This can occur during active queries or while the connection is idle, typically resulting from broken pipes, connection timeouts, or sudden closures by the server or intermediary network devices.
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: NetworkExceptionReason, details: String? = null, cause: Throwable? = null, sqlState: String? = "08006", serverErrorMessage: ServerErrorMessage? = null)