The Update and Delete buttons use exception handlers to display the error message if something goes wrong (such as referential integrity violations when deleting a record).
如果发生错误(例如删除记录时违反了参照完整性),Update和Delete按钮则使用异常处理程序来显示出错消息。
For example, to refer to PHP Exception class, you would use $error = new \Exception();.
例如,要想引用 PHP Exception 类,应该使用 $error = new \Exception();。
应用推荐