@aedart/support/exceptions offers a few utilities for working with Custom Errors.
@aedart/support/exceptions