PermissionDeniedException

Exception thrown when the current database user lacks the required privileges to execute a statement or access an object.

This exception can include optional metadata identifying the specific schema, table, column, datatype, or routine where the permission denial occurred, aiding in debugging access control issues.

Parameters

sqlState

The SQL state code returned by the database.

serverErrorMessage

The original error message from the database server.

Constructors

Link copied to clipboard
constructor(sqlState: String, serverErrorMessage: ServerErrorMessage)

Properties

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

The name of the column for which permission was denied, if applicable.

Link copied to clipboard

The name of the datatype for which permission was denied, if applicable.

Link copied to clipboard

The primary error message the database raised.

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 name of the routine (function/procedure) for which permission was denied, if applicable.

Link copied to clipboard

The name of the schema for which permission was denied, 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.

Link copied to clipboard

The name of the table for which permission was denied, 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