It is possible to protect a part of a program against abrupt termination in the event of an exception. There are several ways to do this:
catch/3
as
described in ref-ere-hex-pgo.
user:unknown_predicate_handler/3
;
see ref-ere-hex-hup.
user:error_exception(
+Exception)
hook,developmentsyntax_errors
Prolog flag or with
the same option to read_term/[2,3]
; see ref-ere-err-syn.
fileerrors
Prolog flag or with the same option to
absolute_file_name/3
; see ref-ere-err-exi and
ref-ere-err-per.