Package org.appng.api

Class InvalidConfigurationException

  • All Implemented Interfaces:
    Serializable

    public class InvalidConfigurationException
    extends Exception
    An InvalidConfigurationException is a checked exception thrown by the platform whenever something goes wrong during Application-execution.
    Some examples:
    • a Application could not be found
    • a Resource could not be found
    • there was an error while reading a Resource, e.g. an invalid XML-file was found
    • etc.
    Author:
    Matthias Müller
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidConfigurationException

        public InvalidConfigurationException​(Site site,
                                             String applicationName,
                                             String message)
        Create a new InvalidConfigurationException.
        Parameters:
        site - the Site where the error occurred
        applicationName - the name of the Application where the error occurred
        message - the error message
      • InvalidConfigurationException

        public InvalidConfigurationException​(String applicationName,
                                             String message)
        Create a new InvalidConfigurationException.
        Parameters:
        applicationName - the name of the Application where the error occurred
        message - the error message
      • InvalidConfigurationException

        public InvalidConfigurationException​(String applicationName,
                                             String message,
                                             Throwable cause)
        Create a new InvalidConfigurationException.
        Parameters:
        applicationName - the name of the Application where the error occurred
        message - the error message
        cause - the cause of the InvalidConfigurationException
    • Method Detail

      • getSite

        public Site getSite()
        Returns the Site where the error occurred, if present.
        Returns:
        the Site
      • getApplicationName

        public String getApplicationName()
        Returns the name of the Application where the error occurred, if present.
        Returns:
        the name of the Application