Exceptions: Difference between revisions

m
Line 1,830:
<lang nanoquery>try
invalid "this statement will fail"
catch $e
println "caught an exception"
println $e
end try</lang>
</lang>
Throwing exceptions:
<lang nanoquery>throw new("Nanoquery.Exceptions.Exception", "exception reason as string")</lang>
 
=={{header|Nemerle}}==
Anonymous user