Package org.appng.api
Class InvalidConfigurationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.appng.api.InvalidConfigurationException
-
- All Implemented Interfaces:
Serializable
public class InvalidConfigurationException extends Exception
AnInvalidConfigurationExceptionis a checked exception thrown by the platform whenever something goes wrong duringApplication-execution.
Some examples:- a
Applicationcould not be found - a
Resourcecould 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 Summary
Constructors Constructor Description InvalidConfigurationException(String applicationName, String message)Create a newInvalidConfigurationException.InvalidConfigurationException(String applicationName, String message, Throwable cause)Create a newInvalidConfigurationException.InvalidConfigurationException(Site site, String applicationName, String message)Create a newInvalidConfigurationException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplicationName()Returns the name of theApplicationwhere the error occurred, if present.SitegetSite()Returns theSitewhere the error occurred, if present.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidConfigurationException
public InvalidConfigurationException(Site site, String applicationName, String message)
Create a newInvalidConfigurationException.- Parameters:
site- theSitewhere the error occurredapplicationName- the name of theApplicationwhere the error occurredmessage- the error message
-
InvalidConfigurationException
public InvalidConfigurationException(String applicationName, String message)
Create a newInvalidConfigurationException.- Parameters:
applicationName- the name of theApplicationwhere the error occurredmessage- the error message
-
InvalidConfigurationException
public InvalidConfigurationException(String applicationName, String message, Throwable cause)
Create a newInvalidConfigurationException.- Parameters:
applicationName- the name of theApplicationwhere the error occurredmessage- the error messagecause- the cause of theInvalidConfigurationException
-
-
Method Detail
-
getSite
public Site getSite()
Returns theSitewhere the error occurred, if present.- Returns:
- the
Site
-
getApplicationName
public String getApplicationName()
Returns the name of theApplicationwhere the error occurred, if present.- Returns:
- the name of the
Application
-
-