Share |
JavaFX Exceptions        
Print

JavaFX Exceptions

JavaFX supports the exception as in Java language.
try {
    var result;
    result = 100 / 0;

    //do something else if everything goes fine.
} catch (e: Exception) {
    println("{e.getMessage()}. Actual Exception {e.getClass()}");
} finally {
    println("This will be called in all situations.");
}



Next  JavaFX Index  Java Home  Home

Post new comment

Click for Help
BoldItalicUnderlineStrikethroughExternal LinkSmileys
Anti-Bot verification code: Random Image
Post new comment