Refactored error handling enums