Did you know ... Search Documentation:
Adding context to errors: prolog_exception_hook