Support for custom exceptions