TRY Imperative-Statement-1[ CATCH {Exception-Class} Imperative-Statement-2 ] ...[ FINALLY Imperative-Statement-4 ]
2. Exception-Class is a User-defined word, as defined in the Definitions section in the Preface of this document.
1. Exception-Class must appear in the REPOSITORY Paragraph and reference a class of type java.lang.Trowable.
The second snippet catches the SecurityException thrown by the exists() method of java.io.File, as described in the method javadoc: http://download.oracle.com/javase/6/docs/api/java/io/File.html#exists() :
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |