Documentation Home
MySQL 9.1 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.3Mb
PDF (A4) - 40.4Mb
Man Pages (TGZ) - 259.3Kb
Man Pages (Zip) - 366.4Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


27.3.6.6 Warning Object

Warning represents a warning raised by statement execution, and has the following properties:

  • code: MySQL error code (integer).

  • level: Warning level. Can be any one of 1 (NOTE), 2 (WARNING), or 3 (ERROR).

  • message: Text of the warning message; a string.

You can also employ the JavaScript Error object, such as obtained from a try-catch block. See Error Handling, for more information.