DataException
class DataException(val reason: DataExceptionReason, sqlState: String, serverErrorMessage: ServerErrorMessage) : OctaviusException
Exception thrown when an operation fails due to invalid data values during execution.
Unlike syntax or definition errors, this occurs when the query structure is correct, but the runtime values (often parameters) cause an error. Examples include string truncation, numeric overflow, division by zero, or invalid text representation of a data type.
Parameters
sqlState
The SQL state code returned by the database.
serverErrorMessage
The original error message from the database server.