org.rhq.bindings.util
Class ScriptAssertionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
ScriptAssertionException()
           
ScriptAssertionException(AssertionError error)
           
ScriptAssertionException(String message)
           
ScriptAssertionException(String message, Throwable cause)
           
ScriptAssertionException(Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.