RosettaCodeData/Task/Exceptions/Maple/exceptions.maple

9 lines
148 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
errorproc:=proc(n)
local a;
try
a:=1/n;
catch "numeric exception: division by zero":
error "Something went wrong when dividing."
end try;
end proc;