Reporting Errors

Learn how to report errors.

The caller built-in

We use the caller built-in to inspect a function’s calling context. When passed no arguments, caller returns a list containing the name of the calling package, the name of the file containing the call, and the line number of the file on which the call occurred:

Get hands-on with 1200+ tech skills courses.