org.iscreen.impl.xml
Class XmlConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.iscreen.ConfigurationException
                  extended by 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

Constructor Summary
XmlConfigurationException(PositionContext position, java.lang.String expectation, java.lang.String found)
           
XmlConfigurationException(PositionContext position, java.lang.String expectation, java.lang.String found, java.lang.Throwable t)
           
XmlConfigurationException(java.lang.String message)
           
XmlConfigurationException(java.lang.String message, java.lang.Throwable t)
           
 
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
 

Constructor Detail

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)
Method Detail

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.