statement_exceptions
Creates, updates, deletes, gets or lists a statement_exceptions resource.
Overview
| Name | statement_exceptions |
| Type | Resource |
| Id | confluent.sql.statement_exceptions |
Fields
The following fields are returned by SELECT queries:
- get_sqlv1_statement_exceptions
Statement Exceptions.
| Name | Datatype | Description |
|---|---|---|
name | string | Name of the SQL statement exception. (example: java.lang.RuntimeException) |
kind | string | Kind defines the object this REST resource represents. (StatementException) |
message | string | Error message of the statement exception. (example: java.lang.RuntimeException: An error occurred) |
timestamp | string (date-time) | The date and time at which the exception occurred. It is represented in RFC3339 format and is in UTC. (example: 2025-11-10T16:20:00Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_sqlv1_statement_exceptions | select | organization_id, environment_id, statement_name | Retrieve a list of the 10 most recent statement exceptions. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
environment_id | string | The unique identifier for the environment. |
organization_id | string (uuid) | The unique identifier for the organization. |
statement_name | string | The unique identifier for the statement. |
SELECT examples
- get_sqlv1_statement_exceptions
Retrieve a list of the 10 most recent statement exceptions.
SELECT
name,
kind,
message,
timestamp
FROM confluent.sql.statement_exceptions
WHERE organization_id = '{{ organization_id }}' -- required
AND environment_id = '{{ environment_id }}' -- required
AND statement_name = '{{ statement_name }}' -- required
;