Error Macro
Last modified by Lucas Charpentier on 2026/02/26 15:35
| Displays an error message in a styled box format |
| Type | JAR |
| Category | |
| Developed by | |
| Rating | |
| License | GNU Lesser General Public License 2.1 |
| Bundled With | XWiki Standard |
| Compatibility | XWiki Enterprise >= 2.0 |
Table of contents
Description
Usage
This macro inherits parameters from the Box Macro.
{{error}}text{{/error}}Example
{{error}}This is an error message{{/error}}Result

The styling of the box depends on the skin. The previous result example was made with Flamingo Skin.
XWiki <16.7.0
The style of the macro was slightly different:

Alternative
XWiki 17.3.0-+ If in your development you cannot use the XWiki macro described here (e.g. when inside an HTML block), you should rely on the alternative velocimacros #error and #inlineError instead of hard-coding the error block. Those velocimacros only support one parameter, the content of the macro. Those velocimacros are bundled with XWiki standard and they should be rendered the same as a basic error macro.