Skip to main content

statement_exceptions

Creates, updates, deletes, gets or lists a statement_exceptions resource.

Overview

Namestatement_exceptions
TypeResource
Idconfluent.sql.statement_exceptions

Fields

The following fields are returned by SELECT queries:

Statement Exceptions.

NameDatatypeDescription
namestringName of the SQL statement exception. (example: java.lang.RuntimeException)
kindstringKind defines the object this REST resource represents. (StatementException)
messagestringError message of the statement exception. (example: java.lang.RuntimeException: An error occurred)
timestampstring (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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sqlv1_statement_exceptionsselectorganization_id, environment_id, statement_nameRetrieve 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.

NameDatatypeDescription
environment_idstringThe unique identifier for the environment.
organization_idstring (uuid)The unique identifier for the organization.
statement_namestringThe unique identifier for the statement.

SELECT examples

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
;