Class: WindErrorMessage
Source Location: /base/WindErrorMessage.php
Class WindErrorMessage
Class Overview
Implements interfaces:
错误消息类
错误消息处理类,实现了'IWindErrorMessage'接口,拥有通用的错误存储能力. 在此基础上该类还可以发送错误,并且自定义错误处理操作.
Located in /base/WindErrorMessage.php [line 13]
WindModule
|
--WindErrorMessage
Author(s):
Information Tags:
Version: | $Id: WindErrorMessage.php 3264 2011-12-20 09:01:40Z yishuo $ |
Copyright: | ©2003-2103 phpwind.com |
License: | http://www.windframework.com |
|
Methods
|
Inherited Properties, Constants, and Methods
Methods
WindErrorMessage __construct(
[string
$message = ''], [string
$errorAction = '']
)
|
|
Parameters:
string |
$message: |
错误消息 默认为空 |
string |
$errorAction: |
用于处理当前错误的Action操作 默认为空 |
API Tags:
void addError(
$error, [
$key = '']
)
|
|
Parameters:
API Tags:
void getError(
[
$key = '']
)
|
|
Parameters:
API Tags:
返回用于处理当前错误的action操作
API Tags:
void sendError(
[
$message = '']
)
|
|
Parameters:
API Tags:
void setErrorAction(
string
$errorAction
)
|
|
设置用于处理当前错误的action操作
$errorAction支持的输入格式 /module/controller/action/?args
Parameters:
API Tags:
|
|