Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 4.1Mb
PDF (A4) - 4.1Mb


3.5.3.15 Exceptions/Warnings

  • dumpQueriesOnException

    Should the driver dump the contents of the query sent to the server in the message for SQLExceptions?

    Default Value false
    Since Version 3.1.3
  • exceptionInterceptors

    Comma-delimited list of classes that implement the interface 'com.mysql.cj.exceptions.ExceptionInterceptor'. These classes will be instantiated one per 'Connection' instance, and all 'SQLException' exceptions thrown by the driver will be allowed to be intercepted by these interceptors, in a chained fashion, with the first class listed as the head of the chain.

    Since Version 5.1.8
  • ignoreNonTxTables

    Ignore non-transactional table warning for rollback?

    Default Value false
    Since Version 3.0.9
  • includeInnodbStatusInDeadlockExceptions

    Include the output of "SHOW ENGINE INNODB STATUS" in exception messages when deadlock exceptions are detected?

    Default Value false
    Since Version 5.0.7
  • includeThreadDumpInDeadlockExceptions

    Include current Java thread dump in exception messages when deadlock exceptions are detected?

    Default Value false
    Since Version 5.1.15
  • includeThreadNamesAsStatementComment

    Include the name of the current thread as a comment visible in "SHOW PROCESSLIST", or in Innodb deadlock dumps, useful in correlation with "includeInnodbStatusInDeadlockExceptions=true" and "includeThreadDumpInDeadlockExceptions=true".

    Default Value false
    Since Version 5.1.15
  • useOnlyServerErrorMessages

    Don't prepend standard 'SQLState' error messages to error messages returned by the server.

    Default Value true
    Since Version 3.0.15