Package org.xwiki.template
Class TemplateRequirementsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.xwiki.logging.AbstractMessageException
-
- org.xwiki.template.TemplateRequirementsException
-
- All Implemented Interfaces:
Serializable
@Unstable public class TemplateRequirementsException extends org.xwiki.logging.AbstractMessageException
Any exception raised in the XWiki Extension Manager must raise an exception of this type.- Since:
- 15.0RC1, 14.10.1
- Version:
- $Id: 53ed4a75eb34e5bd2c4bb3ea19e4afca1cdbf306 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRANSLATION_KEY
The translation key to use to translate this error.static String
TRANSLATION_KEY_PREFIX
The prefix to use in various template requirement errors.
-
Constructor Summary
Constructors Constructor Description TemplateRequirementsException(String template, List<Throwable> causes)
Constructs a new exception with the specified detail message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Throwable>
getCauses()
-
Methods inherited from class org.xwiki.logging.AbstractMessageException
getMessage, getParameterizedMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
TRANSLATION_KEY
public static final String TRANSLATION_KEY
The translation key to use to translate this error.- See Also:
- Constant Field Values
-
TRANSLATION_KEY_PREFIX
public static final String TRANSLATION_KEY_PREFIX
The prefix to use in various template requirement errors.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TemplateRequirementsException
public TemplateRequirementsException(String template, List<Throwable> causes)
Constructs a new exception with the specified detail message and cause.- Parameters:
template
- the name of the failing templatecauses
- the causes (which is saved for later retrieval by thegetCauses()
method)
-
-