Files
ivy/doc/sample/Exception.im
2025-08-16 21:02:14 +01:00

13 lines
236 B
Plaintext

try
x = 0
--v = Int parse:'342'
catch ($err:number_format, err) in
x = 1
--cout put:'Cannot parse integer string ({err})'
catch (_, err) in
x = 2
--cout put:'Unknown error occurred ({err})'
finally
x = 3
end