Custom error handling support