Documentation Home
MySQL 9.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.0Mb
PDF (A4) - 40.1Mb
Man Pages (TGZ) - 258.8Kb
Man Pages (Zip) - 365.9Kb
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.