Package org.xwiki.template
Class TemplateRequirementException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.xwiki.logging.AbstractMessageException
-
- org.xwiki.template.TemplateRequirementException
-
- All Implemented Interfaces:
Serializable
@Unstable public class TemplateRequirementException extends org.xwiki.logging.AbstractMessageException
Exception thrown when a template requirement is not met.- Since:
- 15.0RC1, 14.10.1
- Version:
- $Id: 88e872c4244d2593ebba34d2f25d4ae5b29d3dcb $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateRequirementException(String translationKey, String defaultMessage, Object... arguments)
Constructs a new exception with the specified detail message and cause.TemplateRequirementException(org.slf4j.Marker marker, String defaultMessage, Object[] argumentArray, Throwable cause)
Constructs a new exception with the specified detail message and cause.
-
Method Summary
-
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
-
-
-
-
Constructor Detail
-
TemplateRequirementException
public TemplateRequirementException(String translationKey, String defaultMessage, Object... arguments)
Constructs a new exception with the specified detail message and cause.- Parameters:
translationKey
- the key used to find the translationdefaultMessage
- the default message pattern, support SLF4J syntax for parametersarguments
- the arguments to insert in the message. If the last argument is aThrowable
, it's extracted as the cause.- See Also:
Message(org.slf4j.Marker, java.lang.String, java.lang.Object[], java.lang.Throwable)
-
TemplateRequirementException
public TemplateRequirementException(org.slf4j.Marker marker, String defaultMessage, Object[] argumentArray, Throwable cause)
Constructs a new exception with the specified detail message and cause.- Parameters:
marker
- the log markerdefaultMessage
- the default message pattern, support SLF4J syntax for parametersargumentArray
- the event arguments to insert in the messagecause
- the throwable associated to the event- See Also:
Message(Marker, String, Object[], Throwable)
-
-