Class 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 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 translation
        defaultMessage - the default message pattern, support SLF4J syntax for parameters
        arguments - the arguments to insert in the message. If the last argument is a Throwable, 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 marker
        defaultMessage - the default message pattern, support SLF4J syntax for parameters
        argumentArray - the event arguments to insert in the message
        cause - the throwable associated to the event
        See Also:
        Message(Marker, String, Object[], Throwable)