com.gargoylesoftware.htmlunit.javascript
Class StrictErrorHandler

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

public class StrictErrorHandler
extends Object
implements ErrorHandler

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

Version:
$Revision: 6701 $
Author:
Mike Bowler

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

Constructor Detail

StrictErrorHandler

public StrictErrorHandler()
Method Detail

warning

public void warning(SAXParseException rethrow)
             throws SAXParseException
A warning occurred.

Specified by:
warning in interface ErrorHandler
Parameters:
rethrow - an exception which will be rethrown
Throws:
SAXParseException - always

error

public void error(SAXParseException rethrow)
           throws SAXParseException
An error occurred.

Specified by:
error in interface ErrorHandler
Parameters:
rethrow - an exception which will be rethrown
Throws:
SAXParseException - always

fatalError

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

Specified by:
fatalError in interface ErrorHandler
Parameters:
rethrow - an exception which will be rethrown
Throws:
SAXParseException - always


Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.