com.xpn.xwiki.plugin.applicationmanager.core.api
Class XWikiExceptionApi
java.lang.Object
com.xpn.xwiki.api.Api
com.xpn.xwiki.plugin.applicationmanager.core.api.XWikiExceptionApi
public class XWikiExceptionApi
- extends com.xpn.xwiki.api.Api
Permit to manipulate XWikiException in velocity code.
- Version:
- $Id: $
| Fields inherited from class com.xpn.xwiki.api.Api |
context |
|
Constructor Summary |
XWikiExceptionApi(com.xpn.xwiki.XWikiException exception,
com.xpn.xwiki.XWikiContext context)
XWikiExceptionApi constructor. |
|
Method Summary |
int |
get(java.lang.String error)
Get static field error code value. |
java.lang.String |
toString()
|
| Methods inherited from class com.xpn.xwiki.api.Api |
checkProgrammingRights, convert, convert, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ERROR_NOERROR
public static final int ERROR_NOERROR
- No error.
- See Also:
- Constant Field Values
ERROR_XWIKI_ERROR_DOES_NOT_EXIST
public static final int ERROR_XWIKI_ERROR_DOES_NOT_EXIST
- Error code that is used when requested error code does not exists.
- See Also:
- Constant Field Values
XWikiExceptionApi
public XWikiExceptionApi(com.xpn.xwiki.XWikiException exception,
com.xpn.xwiki.XWikiContext context)
- XWikiExceptionApi constructor.
- Parameters:
exception - the XWiki exception to manage.context - the XWiki context.
toString
public java.lang.String toString()
-
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
get
public int get(java.lang.String error)
throws com.xpn.xwiki.XWikiException
- Get static field error code value. This name targeting velocity to be able to use like
"exception.SOME_ERROR_CODE".
- Parameters:
error - the static field name.
- Returns:
- the static field value.
- Throws:
com.xpn.xwiki.XWikiException - ERROR_XWIKI_ERROR_DOES_NOT_EXIST No corresponding error code exist.
Copyright © 2004-2009 XWiki. All Rights Reserved.