HttpException (class)

Class HttpException

Parent class for all of the HTTP related exceptions in CakePHP. All HTTP status/error related exceptions should extend this class so catch blocks can be specifically typed.

You may also use this as a meaningful bridge to Cake\Core\Exception\Exception, e.g.: throw new \Cake\Network\Exception\HttpException('HTTP Version Not Supported', 505);

Exception
Extended by RuntimeException
Extended by Cake\Core\Exception\Exception
登录查看完整内容