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 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. |
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 String toString()
-
- Overrides:
toString in class Object
- See Also:
Object.toString()
get
public int get(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-2011 XWiki. All Rights Reserved.