com.goldenhammer.modality
Class ModalityErrorHandler

java.lang.Object
  extended bycom.goldenhammer.modality.ModalityErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class ModalityErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Handles the errors caused by parsing the profile.


Constructor Summary
ModalityErrorHandler(java.util.logging.Logger logger, java.lang.String modalityID)
          Creates a new handler for a modality.
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 void warning(org.xml.sax.SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModalityErrorHandler

public ModalityErrorHandler(java.util.logging.Logger logger,
                            java.lang.String modalityID)
Creates a new handler for a modality.

Parameters:
logger - The logger this handler uses to log exceptions.
modalityID - The ID of the modality this handler is associated with.
Method Detail

error

public void error(org.xml.sax.SAXParseException exception)
Specified by:
error in interface org.xml.sax.ErrorHandler
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
Specified by:
fatalError in interface org.xml.sax.ErrorHandler
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)

warning

public void warning(org.xml.sax.SAXParseException exception)
Specified by:
warning in interface org.xml.sax.ErrorHandler
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)