public class JSApplicationCausedNativeException
extends java.lang.RuntimeException
A good rule of thumb for whether a native Exception should extend this interface is 1) Can a developer make a change or correction in JS to keep this Exception from being thrown? 2) Is the app outside of this catalyst instance still in a good state to allow reloading and restarting this catalyst instance?
Examples where this class is appropriate to throw:
Examples where this class **isn't** appropriate to throw: - Failed to write to localStorage because disk is full - Assertions about internal state (e.g. that child.getParent().indexOf(child) != -1)
Constructor and Description |
---|
JSApplicationCausedNativeException(java.lang.String detailMessage) |
JSApplicationCausedNativeException(java.lang.String detailMessage,
java.lang.Throwable throwable) |