Did you know ... Search Documentation:
Predicate prolog_exception_hook/5