9 lines
148 B
Text
9 lines
148 B
Text
|
|
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;
|