11.3.33 catch/3 [ISO]

Synopsis

catch(+ProtectedGoal, -Exception, +Handler)

same as:

on_exception(Exception, ProtectedGoal, Handler)

Arguments

:ProtectedGoal
callable, must be nonvar
Exception
term
:Handler
callable, must be nonvar

Backtracking

Depends on ProtectedGoal and Handler.

Exceptions

Call errors (see ref-sem-exc).

See Also

ref-ere.


Send feedback on this subject.