Adjusted parent classes for custom exceptions