Documentation Home
MySQL 9.2 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.7Mb
PDF (A4) - 40.8Mb
Man Pages (TGZ) - 259.6Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


27.3.6.8 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.