com.gargoylesoftware.htmlunit.javascript
Class StrictErrorHandler

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.StrictErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

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

An error handler that throws an exception for all problems no matter how minor.

Version:
$Revision: 1.3 $
Author:
Mike Bowler

Constructor Summary
StrictErrorHandler()
  
 
Method Summary
 void error(org.xml.sax.SAXParseException rethrow)
 An error occurred.
 void fatalError(org.xml.sax.SAXParseException rethrow)
 A fatal error occurred.
 void warning(org.xml.sax.SAXParseException rethrow)
 A warning occurred.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictErrorHandler

public StrictErrorHandler()
Method Detail

error

public void error(org.xml.sax.SAXParseException rethrow)
           throws org.xml.sax.SAXParseException
An error occurred.

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
rethrow - An exception which will be rethrown.
Throws:
org.xml.sax.SAXParseException - Always.

fatalError

public void fatalError(org.xml.sax.SAXParseException rethrow)
                throws org.xml.sax.SAXParseException
A fatal error occurred.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
rethrow - An exception which will be rethrown.
Throws:
org.xml.sax.SAXParseException - Always.

warning

public void warning(org.xml.sax.SAXParseException rethrow)
             throws org.xml.sax.SAXParseException
A warning occurred.

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
rethrow - An exception which will be rethrown.
Throws:
org.xml.sax.SAXParseException - Always.


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.