mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
31 lines
821 B
PHP
31 lines
821 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
if (class_exists('PEAR_Error')) {
|
||
|
||
class base_compat_jsonerror extends PEAR_Error
|
||
{
|
||
function base_compat_jsonerror($message = 'unknown error', $code = null,
|
||
$mode = null, $options = null, $userinfo = null)
|
||
{
|
||
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
|
||
}
|
||
}
|
||
|
||
} else {
|
||
|
||
/**
|
||
* @todo Ultimately, this class shall be descended from PEAR_Error
|
||
*/
|
||
class base_compat_jsonerror
|
||
{
|
||
function base_compat_jsonerror($message = 'unknown error', $code = null,
|
||
$mode = null, $options = null, $userinfo = null)
|
||
{
|
||
|
||
}
|
||
}
|
||
} |