Files
OMS/app/base/lib/compat/jsonerror.php
2025-12-28 23:13:25 +08:00

31 lines
821 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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)
{
}
}
}