phpDocumentor
[ class tree: ] [ index: ] [ all elements ]

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

[ Top ]
Method Summary
void   addError()   添加一条错误信息
void   clearError()   清空当前错误对象中的全部错误信息
string|array   getError()   返回错误信息
void   sendError()   发送错误信息

[ Top ]
Methods
addError  [line 111]

  void addError( string $message, [string $key = '']  )

添加一条错误信息

添加一条错误信息,可存储多条错误信息,以数组方式存储错误信息,当key值为空时,消息索引为自然索引

Parameters:
string   $message:  错误信息
string   $key:  key值 默认为空

API Tags:
Access:  public


[ Top ]
clearError  [line 127]

  void clearError( )

清空当前错误对象中的全部错误信息


API Tags:
Access:  public


[ Top ]
getError  [line 120]

  string|array getError( [string $key = '']  )

返回错误信息

返回错误信息,当key为空时,返回全部的错误信息

Parameters:
string   $key: 

API Tags:
Access:  public


[ Top ]
sendError  [line 135]

  void sendError( )

发送错误信息


API Tags:
Access:  public

Information Tags:
Throws:  WindActionException

[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:32 +0800 by phpDocumentor 1.4.4