新增基类异常
This commit is contained in:
parent
79863215b3
commit
aba362dbad
@ -1 +1,5 @@
|
||||
<?php
|
||||
namespace catcher\exceptions;
|
||||
|
||||
abstract class CatchException extends \Exception
|
||||
{}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace catcher\exceptions;
|
||||
|
||||
class FailedException extends \Exception
|
||||
class FailedException extends CatchException
|
||||
{
|
||||
protected $code = 10010;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace catcher\exceptions;
|
||||
|
||||
class LoginFailedException extends \Exception
|
||||
class LoginFailedException extends CatchException
|
||||
{
|
||||
protected $code = 10010;
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace catcher\exceptions;
|
||||
|
||||
class PermissionForbiddenException extends \Exception
|
||||
class PermissionForbiddenException extends CatchException
|
||||
{
|
||||
protected $code = 10005;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace catcher\exceptions;
|
||||
|
||||
class ValidateFailedException extends \Exception
|
||||
class ValidateFailedException extends CatchException
|
||||
{
|
||||
protected $code = 10001;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user