将针对由SQLSTATE标识的两个特定错误声明处理程序。
A handler is declared for two specific errors identified by SQLSTATE.
第二种方法就是具有专用的处理程序,“捕捉”各条语句所“抛出”的任何或特定错误条件。
The second method is to have dedicated handlers that "catch" any or specific error conditions thrown "by individual statements."
异常中还显示了通信错误,可以看到,在这种特定情况下,这就是要返回给应用程序的内容。
The communication error is also displayed in the exception, and you can see that in this particular case this is what is being returned back to the application.
应用推荐