org.iscreen.impl.xml
Class XmlConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.iscreen.ConfigurationException
org.iscreen.impl.xml.XmlConfigurationException
- All Implemented Interfaces:
- java.io.Serializable
public class XmlConfigurationException
- extends ConfigurationException
This runtime exception is specifically for XML configuration issues.
- Author:
- Shellman, Dan
- See Also:
- Serialized Form
Method Summary |
protected static java.lang.String |
generateMessage(PositionContext position,
java.lang.String expectation,
java.lang.String found)
Generates an error message based upon the passed-in parameters. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XmlConfigurationException
public XmlConfigurationException(java.lang.String message)
XmlConfigurationException
public XmlConfigurationException(java.lang.String message,
java.lang.Throwable t)
XmlConfigurationException
public XmlConfigurationException(PositionContext position,
java.lang.String expectation,
java.lang.String found)
XmlConfigurationException
public XmlConfigurationException(PositionContext position,
java.lang.String expectation,
java.lang.String found,
java.lang.Throwable t)
generateMessage
protected static java.lang.String generateMessage(PositionContext position,
java.lang.String expectation,
java.lang.String found)
- Generates an error message based upon the passed-in parameters.
- Parameters:
position
- The location of the error in the XML file.expectation
- The expected results.found
- The error found.
- Returns:
- Returns a message representing the error.