Interface: IWindErrorMessage
Source Location: /base/WindErrorMessage.php
Interface IWindErrorMessage
Interface Overview
错误消息类接口定义
the last known user to change this file in the repository <$LastChangedBy: yishuo $>
Located in /base/WindErrorMessage.php [line 102]
Author(s):
Information Tags:
Version: | $Id: WindErrorMessage.php 3264 2011-12-20 09:01:40Z yishuo $ |
|
Methods
|
Methods
void addError(
string
$message, [string
$key = '']
)
|
|
添加一条错误信息
添加一条错误信息,可存储多条错误信息,以数组方式存储错误信息,当key值为空时,消息索引为自然索引
Parameters:
string |
$message: |
错误信息 |
string |
$key: |
key值 默认为空 |
API Tags:
清空当前错误对象中的全部错误信息
API Tags:
string|array getError(
[string
$key = '']
)
|
|
返回错误信息
返回错误信息,当key为空时,返回全部的错误信息
Parameters:
API Tags:
发送错误信息
API Tags:
Information Tags:
Throws: | WindActionException |
|
|