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
AnInvalidConfigurationException
is a checked exception thrown by the platform whenever something goes wrong duringApplication
-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 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 String
getApplicationName()
Returns the name of theApplication
where the error occurred, if present.Site
getSite()
Returns theSite
where 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
- theSite
where the error occurredapplicationName
- the name of theApplication
where the error occurredmessage
- the error message
-
InvalidConfigurationException
public InvalidConfigurationException(String applicationName, String message)
Create a newInvalidConfigurationException
.- Parameters:
applicationName
- the name of theApplication
where the error occurredmessage
- the error message
-
InvalidConfigurationException
public InvalidConfigurationException(String applicationName, String message, Throwable cause)
Create a newInvalidConfigurationException
.- Parameters:
applicationName
- the name of theApplication
where the error occurredmessage
- the error messagecause
- the cause of theInvalidConfigurationException
-
-
Method Detail
-
getSite
public Site getSite()
Returns theSite
where the error occurred, if present.- Returns:
- the
Site
-
getApplicationName
public String getApplicationName()
Returns the name of theApplication
where the error occurred, if present.- Returns:
- the name of the
Application
-
-