Error Macro

Last modified by Lucas Charpentier (Sereza7) on 2025/04/15 15:08

exclamationDisplays an error message in a styled box format
TypeJAR
Category
Developed by

XWiki Development Team

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Standard

Compatibility

XWiki Enterprise >= 2.0

Description

Usage

This macro inherits parameters from the Box Macro.

{{error}}text{{/error}}

Example

{{error}}This is an error message{{/error}}

Result

ErrorMacro16_7.png

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:

ErrorMacro.png

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.

See also

Get Connected