新增基类异常

This commit is contained in:
wuyanwen 2019-12-15 13:38:47 +08:00
parent 79863215b3
commit aba362dbad
5 changed files with 8 additions and 4 deletions

View File

@ -1 +1,5 @@
<?php
namespace catcher\exceptions;
abstract class CatchException extends \Exception
{}

View File

@ -1,7 +1,7 @@
<?php
namespace catcher\exceptions;
class FailedException extends \Exception
class FailedException extends CatchException
{
protected $code = 10010;
}

View File

@ -1,7 +1,7 @@
<?php
namespace catcher\exceptions;
class LoginFailedException extends \Exception
class LoginFailedException extends CatchException
{
protected $code = 10010;
}

View File

@ -1,7 +1,7 @@
<?php
namespace catcher\exceptions;
class PermissionForbiddenException extends \Exception
class PermissionForbiddenException extends CatchException
{
protected $code = 10005;

View File

@ -1,7 +1,7 @@
<?php
namespace catcher\exceptions;
class ValidateFailedException extends \Exception
class ValidateFailedException extends CatchException
{
protected $code = 10001;
}