mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
update to 2.5.0-b1 (build 408)
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
namespace ZM\Exception;
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
class DbException extends ZMException
|
||||
{
|
||||
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null) {
|
||||
parent::__construct(zm_internal_errcode("E00043") . $message, $code, $previous);
|
||||
}
|
||||
}
|
||||
|
||||
15
src/ZM/Exception/ExceptionHandler.php
Normal file
15
src/ZM/Exception/ExceptionHandler.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\Exception;
|
||||
|
||||
/**
|
||||
* 这里放所有框架内部的异常处理方法
|
||||
* Class ExceptionHandler
|
||||
* @package ZM\Exception
|
||||
* @since 2.5
|
||||
*/
|
||||
class ExceptionHandler
|
||||
{
|
||||
|
||||
}
|
||||
14
src/ZM/Exception/ModulePackException.php
Normal file
14
src/ZM/Exception/ModulePackException.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\Exception;
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
class ModulePackException extends ZMException
|
||||
{
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null) {
|
||||
parent::__construct(zm_internal_errcode("E00044") . $message, $code, $previous);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,11 @@
|
||||
namespace ZM\Exception;
|
||||
|
||||
|
||||
class NotInitializedException extends ZMException
|
||||
{
|
||||
use Throwable;
|
||||
|
||||
class NotInitializedException extends RedisException
|
||||
{
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null) {
|
||||
parent::__construct(zm_internal_errcode("E00046") . $message, $code, $previous);
|
||||
}
|
||||
}
|
||||
|
||||
9
src/ZM/Exception/RedisException.php
Normal file
9
src/ZM/Exception/RedisException.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\Exception;
|
||||
|
||||
|
||||
class RedisException extends ZMException
|
||||
{
|
||||
}
|
||||
@@ -14,6 +14,6 @@ use Throwable;
|
||||
class RobotNotFoundException extends ZMException
|
||||
{
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null) {
|
||||
parent::__construct($message, $code, $previous);
|
||||
parent::__construct(zm_internal_errcode("E00037") . $message, $code, $previous);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user