* 程序调试用
*
* @author : wxhbb(whxbb@21cn.com)
* @version : 0.1
* @date : 2001/8/4
*/
class whxbb_debug extends whxbb
{
function whxbb_debug($msg)
{
$this->whxbb();
if($this->_debug == 1)
{
echo "\n<br>whxbb debug >>> $msg<br>\n";
}
}
}
/**
* purpose
* 错误处理(触发错误,显示错误)
*
* @author : whxbb(whxbb@21cn.com)
* @version : 0.1
* @date : 2001/8/4
*/
class whxbb_error extends whxbb
{
/**
* 错误信息
* @access protected
*/
var $_errno;
/**
* 错误代码
* @access protected
*/
var $_errmsg;
/** 报错方式 参见"出错代码的预定义" */
var $_reportmethod;
/**
* 构造一个错误对象
* @param $errmsg 错误信息, 错误的字符描述
* @param $errno 错误代码, 错误的代码
* @param $reportmethod 报错方式,参见"出错代码的预定义"
* @param $param1 参数一,如跳转到指定页面时页面的url
* @param $param2 参数二 保留
* @access public
*/
function whxbb_error($errmsg, $errno, $reportmethod = whxbb_error_ignore, $param1 = '', $param2 = '')
{
$this->whxbb();
$this->_errmsg = $errmsg;
$this->_errno = $errno;
$this->_reportmethod = $reportmethod;
switch(
*
* @author : wxhbb(whxbb@21cn.com)
* @version : 0.1
* @date : 2001/8/4
*/
class whxbb_debug extends whxbb
{
function whxbb_debug($msg)
{
$this->whxbb();
if($this->_debug == 1)
{
echo "\n<br>whxbb debug >>> $msg<br>\n";
}
}
}
/**
* purpose
* 错误处理(触发错误,显示错误)
*
* @author : whxbb(whxbb@21cn.com)
* @version : 0.1
* @date : 2001/8/4
*/
class whxbb_error extends whxbb
{
/**
* 错误信息
* @access protected
*/
var $_errno;
/**
* 错误代码
* @access protected
*/
var $_errmsg;
/** 报错方式 参见"出错代码的预定义" */
var $_reportmethod;
/**
* 构造一个错误对象
* @param $errmsg 错误信息, 错误的字符描述
* @param $errno 错误代码, 错误的代码
* @param $reportmethod 报错方式,参见"出错代码的预定义"
* @param $param1 参数一,如跳转到指定页面时页面的url
* @param $param2 参数二 保留
* @access public
*/
function whxbb_error($errmsg, $errno, $reportmethod = whxbb_error_ignore, $param1 = '', $param2 = '')
{
$this->whxbb();
$this->_errmsg = $errmsg;
$this->_errno = $errno;
$this->_reportmethod = $reportmethod;
switch(
| 对此文章发表了评论 |
