Class 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 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 template
        causes - the causes (which is saved for later retrieval by the getCauses() method)
    • Method Detail

      • getCauses

        public List<Throwable> getCauses()
        Returns:
        the causes which leaded to this exception