1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/3/6
- * Time: 下午10:42
- */
- class TypeException extends Exception
- {
- public function __construct()
- {
- $code = errcode::ErrApptype;
- $message = errcode::msg($code);
- parent::__construct($message, $code, null);
- }
- }
- class UnloginException extends Exception
- {
- public function __construct()
- {
- $code = errcode::ErrUnLogin;
- $message = errcode::msg($code);
- parent::__construct($message, $code, null);
- }
- }
- class UnSignException extends Exception
- {
- public function __construct()
- {
- $code = errcode::ErrSignParamter;
- $message = errcode::msg($code);
- parent::__construct($message, $code, null);
- }
- }
- class UnImplementsException extends Exception
- {
- public function __construct($method)
- {
- $code = errcode::ErrUnImplements;
- parent::__construct($method . ":功能未实现", $code, null);
- }
- }
- class LzException extends Exception
- {
- public function __construct($content)
- {
- parent::__construct($content, 0, null);
- }
- }
|