InvalidOperationException
class InvalidOperationException(val reason: InvalidOperationExceptionReason, val details: String? = null) : OctaviusException
Exception thrown when the driver attempts an operation that is not allowed in the current state or context.
Examples include trying to commit when auto-commit is enabled, operating on a closed statement, using unsupported features, or asking a query for something the call itself did not make possible.
Purely client-side: nothing here was reported by the server, so there is no sqlState and no serverErrorMessage. Raised inside a query, it still carries the queryContext - the SQL and the parameters - the way every driver exception does.