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

Class: WindException

Source Location: /base/WindException.php

Class WindException

Class Overview

通用异常类型,大部分异常都是继承自该异常

Located in /base/WindException.php [line 11]

Exception
   |
   --WindException
Author(s): Information Tags:
Version:  $Id: WindException.php 2973 2011-10-15 19:22:48Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Methods

[ Top ]
Descendants
Child Class Description
WindForwardException 用于跳转的异常类型
WindActionException Action操作异常
WindDaoException Dao异常处理类
WindMailException
WindI18nException
WindCacheException 缓存的异常类
WindViewException 模板视图异常类
WindDbException db异常类

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

[ Top ]
Method Summary
string   buildMessage()   根据exception code返回构建的异常信息描述
WindException   __construct()   异常构造函数
string   messageMapper()   自定义异常号的对应异常信息

[ Top ]
Methods
buildMessage  [line 45]

  string buildMessage( string $message, int $code  )

根据exception code返回构建的异常信息描述

Parameters:
string   $message:  用户自定义的信息
int   $code:  异常号

API Tags:
Return:  组装后的异常信息
Access:  public


[ Top ]
Constructor __construct  [line 33]

  WindException __construct( $message $message, [$code $code = 0], $innerException 2  )

异常构造函数

Parameters:
$innerException   2:  内部异常 默认为null
$message   $message:  异常信息
$code   $code:  异常代号 默认为0

API Tags:
Access:  public


Redefinition of:
Exception::constructor __construct ( [$message = ], [$code = ], [$previous = ] )

Redefined in descendants as:

[ Top ]
messageMapper  [line 57]

  string messageMapper( int $code  )

自定义异常号的对应异常信息

Parameters:
int   $code:  异常号

API Tags:
Return:  返回异常号对应的异常组装信息原型
Access:  protected


Redefined in descendants as:

[ Top ]
Constants
ERROR_CLASS_METHOD_NOT_EXIST = '102' [line 17]

[ Top ]
ERROR_CLASS_NOT_EXIST = '100' [line 15]

[ Top ]
ERROR_CLASS_TYPE_ERROR = '101' [line 16]

[ Top ]
ERROR_CONFIG_ERROR = '120' [line 22]

[ Top ]
ERROR_OBJECT_NOT_EXIST = '103' [line 18]

[ Top ]
ERROR_PARAMETER_TYPE_ERROR = '110' [line 20]

[ Top ]
ERROR_RETURN_TYPE_ERROR = '130' [line 24]

[ Top ]
ERROR_SYSTEM_ERROR = '0' [line 13]

[ Top ]

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