... actually, the one below is the more appropriate one, as it will also propagate the StateUndefinedException that can be thrown by getState(). catch (Throwable tex) { if (mDebugFlag) { tex.printStackTrace(mDebugStream); } if (tex instanceof RuntimeException) { throw (RuntimeException)tex; } }
removed
... or maybe even: catch (Throwable tex) { if (mDebugFlag) { tex.printStackTrace(mDebugStream); } if (tex instanceof TransitionUndefinedException) { throw (TransitionUndefinedException)tex; } else if (tex instanceof RuntimeException) { throw (RuntimeException)tex; } } Thanks
TransitionUndefinedException does not reach AppClass