12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace App\Exceptions;
- use App\Exceptions\Repositories\HOException as HOException;
- class HOError
- {
- public function generalErr()
- {
- throw new HOException('General Error Occurred', 1001);
- }
- public function fail($msg = '失败')
- {
- throw new HOException($msg, 1002);
- }
- public function dataDoesNotExist()
- {
- throw new HOException('数据不存在', 1003);
- }
- public function dataDoesExist($msg = '数据已存在')
- {
- throw new HOException($msg, 1004);
- }
- public function authenticationFailed()
- {
- throw new HOException('API认证失败', 1005);
- }
- public function tokenDoesNotExist()
- {
- throw new HOException('登陆验证失败,重新登陆', 1006);
- }
- public function userDoesNotExist()
- {
- throw new HOException('用户不存在', 1007);
- }
- public function wrongPassword()
- {
- throw new HOException('密码错误', 1008);
- }
- public function wrongPayPassword()
- {
- throw new HOException('支付密码错误', 1009);
- }
- public function notImageFile()
- {
- throw new HOException('文件不是图片', 1010);
- }
- public function uploadImageFalse()
- {
- throw new HOException('图片上传失败', 1011);
- }
-
- }
|