Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Exception handling Restler框架异常处理_Exception Handling_Restler - Fatal编程技术网

Exception handling Restler框架异常处理

Exception handling Restler框架异常处理,exception-handling,restler,Exception Handling,Restler,如何在应用程序中编写异常处理。我正在使用restler框架RestException由restler框架处理,以向api用户发送错误响应。除此之外,restler中的异常处理是PHP常用的方式 处理异常的最佳方法是在预期的位置使用块 您可以检测未处理的异常,并使用。理想情况下,您可以在index.php网关上执行此操作

如何在应用程序中编写异常处理。我正在使用restler框架

RestException由restler框架处理,以向api用户发送错误响应。除此之外,restler中的异常处理是PHP常用的方式

处理异常的最佳方法是在预期的位置使用块

您可以检测未处理的异常,并使用。理想情况下,您可以在index.php网关上执行此操作