Quartz Composer JavaScript Reference © Cybero Designs  

try

Type Statement
Format
try
(
Processing potential of the error
)
catch (argument)
(
For treatment of specific causes of error
)
finally
(
Error of the entire process
)
Commentary
Marks a block of statements to try, and specifies a response, should an exception be thrown.
Sample code - QC 2 JavaScript
try (
a = 1 / 0;
)
catch (e)
(
alert ( "content error (" + e +")");
)
y finally
(
outputs [0] = "Error";
)
Sample code - QC 3 JavaScript
function (__string strOut) main ()
{var result = new Object();
try {
a = 10 / 3;
}
catch(e)
{
alert("Error contents("+e+")");
}
finally
{
} result.strOut ="Error";
return result;
}

Return to the Start Page