public class ScriptAssertionException extends RuntimeException
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.| Constructor and Description |
|---|
ScriptAssertionException() |
ScriptAssertionException(AssertionError error) |
ScriptAssertionException(String message) |
ScriptAssertionException(String message,
Throwable cause) |
ScriptAssertionException(Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ScriptAssertionException()
public ScriptAssertionException(String message)
public ScriptAssertionException(Throwable cause)
public ScriptAssertionException(AssertionError error)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.