catch(Goal, Catcher, Recovery)
Catches exceptions thrown by a goal. See the Prolog ISO standard definition. This built-in meta-predicate is declared as a private method and thus cannot be used as a message to an object.
catch(?callable, ?term, ?term)
instantiation_error
type_error(callable, Goal)
(none)