mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
update to build 417
This commit is contained in:
10
src/ZM/Exception/AnnotationException.php
Normal file
10
src/ZM/Exception/AnnotationException.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\Exception;
|
||||
|
||||
|
||||
class AnnotationException extends \Doctrine\Common\Annotations\AnnotationException
|
||||
{
|
||||
|
||||
}
|
||||
@@ -6,9 +6,9 @@ namespace ZM\Exception;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class DbException extends ZMException
|
||||
class DbException extends ZMKnownException
|
||||
{
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null) {
|
||||
parent::__construct(zm_internal_errcode("E00043") . $message, $code, $previous);
|
||||
parent::__construct("E00043", $message, $code, $previous);
|
||||
}
|
||||
}
|
||||
|
||||
14
src/ZM/Exception/LightCacheException.php
Normal file
14
src/ZM/Exception/LightCacheException.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\Exception;
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
class LightCacheException extends ZMKnownException
|
||||
{
|
||||
public function __construct($err_code, $message = "", $code = 0, Throwable $previous = null) {
|
||||
parent::__construct($err_code, $message, $code, $previous);
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace ZM\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ZMException extends Exception
|
||||
abstract class ZMException extends Exception
|
||||
{
|
||||
|
||||
}
|
||||
14
src/ZM/Exception/ZMKnownException.php
Normal file
14
src/ZM/Exception/ZMKnownException.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\Exception;
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
class ZMKnownException extends ZMException
|
||||
{
|
||||
public function __construct($err_code, $message = "", $code = 0, Throwable $previous = null) {
|
||||
parent::__construct(zm_internal_errcode($err_code) . $message, $code, $previous);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user