org.rhq.bindings.util
Class ScriptAssertionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.rhq.bindings.util.ScriptAssertionException
- All Implemented Interfaces:
- Serializable
public class ScriptAssertionException
- extends RuntimeException
This is a wrapper exception class for AssertionError. The default (i.e., rhino) scripting engine
catches any exception, checked or unchecked, thrown from a script and wraps it in an instance of
ScriptException. ScriptException provides useful context information such as the script name
and line number on which the exception occurred. For reasons unknown instances of Error are not caught and
wrapped in a ScriptException; consequently, no context information is provided about the error, particularly, a line
number.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ScriptAssertionException
public ScriptAssertionException()
ScriptAssertionException
public ScriptAssertionException(String message)
ScriptAssertionException
public ScriptAssertionException(String message,
Throwable cause)
ScriptAssertionException
public ScriptAssertionException(Throwable cause)
ScriptAssertionException
public ScriptAssertionException(AssertionError error)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.