DSA-61: Implement custom exception handler