How do I catch/log all exceptions in my Pages Functions?

How do I catch/log all exceptions in my Pages Functions?
Was this page helpful?