use thinkphp5.1x for interface development and do a global exception handling layer. class ExceptionHandler extends Handle { private $code; private $msg; private $errCode; public function render( Exception $e) { if($e insta...
A self-defined exception handling class is defined by using the exception handling mechanism of springmvc. After testing: 1 RuntimeException thrown by can be captured. if you customize the exception class and throw it manually, you can also catch...