INVALID_GET_DIAGNOSTICS_USAGE error condition
Invalid usage of GET DIAGNOSTICS
statement.
MULTIPLE_CALLS
GET DIAGNOSTICS
statement can be called only once from the same exception handler.
NOT_IN_EXCEPTION_HANDLER
GET DIAGNOSTICS
statement can only be used from within an exception handler.
NOT_IN_ORDER
GET DIAGNOSTICS
must be called after all declarations in the compound, but before any other statement in the compound.