org.stjs.testing
Class JSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.stjs.testing.JSException
All Implemented Interfaces:
Serializable

public class JSException
extends RuntimeException

A placeholder class for javascript exceptions. Since STJS doesn't handle typed exceptions yet, the only Type of Throwable that is accepted by the STJSTestDriverRunner in the @Test.expected field is this class. This makes sure that users of the @Test annotation clearly understand that it is currently not possible to distinguish between different types of exceptions in STJS, and by extension in the STJS JUnit runner.

Author:
lordofthepigs
See Also:
Serialized Form

Constructor Summary
JSException()
           
 
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

JSException

public JSException()


Copyright © 2013. All Rights Reserved.