BadStatementException
class BadStatementException(val messageEnum: BadStatementExceptionMessage, val errorPosition: Int? = null, queryContext: QueryContext? = null, cause: Throwable?) : FatalDatabaseException
Exception thrown when a query is semantically or syntactically invalid.
This exception covers:
Framework Validation: Errors detected before sending the query to the DB (e.g., missing WHERE clause).
Database Syntax/Access Errors: Errors returned by PostgreSQL (Class 42), such as typos in table names or incorrect SQL syntax.
As a FatalDatabaseException, it indicates a developer error that cannot be recovered from at runtime without code changes.
Constructors
Link copied to clipboard
constructor(messageEnum: BadStatementExceptionMessage, errorPosition: Int? = null, queryContext: QueryContext? = null, cause: Throwable?)