[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/scripting ScriptingEngineFactory.java,1.2
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-09-13 18:35:02
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/scripting In directory usw-pr-cvs1:/tmp/cvs-serv23375/src/com/meterware/httpunit/scripting Modified Files: ScriptingEngineFactory.java Log Message: Added control of script error messages Index: ScriptingEngineFactory.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/scripting/ScriptingEngineFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ScriptingEngineFactory.java 20 Aug 2002 15:09:28 -0000 1.2 +++ ScriptingEngineFactory.java 13 Sep 2002 18:34:57 -0000 1.3 @@ -38,4 +38,25 @@ **/ public void associate( WebResponse response ); + /** + * Determines whether script errors result in exceptions or warning messages. + */ + public void setThrowExceptionsOnError( boolean throwExceptions ); + + /** + * Returns true if script errors cause exceptions to be thrown. + */ + public boolean isThrowExceptionsOnError(); + + /** + * Returns the accumulated script error messages encountered. Error messages are accumulated only + * if 'throwExceptionsOnError' is disabled. + */ + public String[] getErrorMessages(); + + /** + * Clears the accumulated script error messages. + */ + public void clearErrorMessages(); + } |