SQLEXCEPTION message [SQLSTATE state [, code]] CHAIN exception
An exception expression creates an exception that can be raised or used as a warning.
Any of the values may be null.
stateare string expressions that specify the exception message and SQL state. Teiid Spring Boot does not fully comply with the ANSI SQL specification on SQL state usage, but you are allowed to set any SQL state you choose.
codeis an integer expression that specifies the vendor code.
exceptionmust be a variable reference to an exception or an exception expression, and will be chained to the resulting exception as its parent.