/** *CheckswhetherthesuppliedThrowableisonethatneedstobe *rethrownandswallowsallothers. *@paramttheThrowabletocheck
*/ publicstaticvoid handleThrowable(Throwable t) { if (t instanceof ThreadDeath) { throw (ThreadDeath) t;
} if (t instanceof StackOverflowError) { // Swallow silently - it should be recoverable return;
} if (t instanceof VirtualMachineError) { throw (VirtualMachineError) t;
} // All other instances of Throwable will be silently swallowed
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.