We've received an Apex heap size too large error intermittently which we'd like to first capture and exit gracefully, and then to fix long term. Questions:
- Is it possible to catch a heap size exception through code?
- If so, what's the easiest way to re-create this exception in a test class, if it's even possible?