View on GitHub

Concert

Concert is an imperative, concurrent, strongly typed scripting language

Download this project as a .zip file Download this project as a tar.gz file

Home Keywords

Keyword catch

Description

Declares the block of code to execute should an exception be thrown from a try-block statement.

Example

# Declare a 5 integer array with default values of 0.
int valArray 5 = 0;

try;
    # An out of bounds exception will occur.
    int sixthValue = valArray[5];
catch;
    println "This print statement will be executed as the try-block statement above will throw an error.";
end;