class CustomError(Exception):
    """
    Custom exception class for handling application-specific errors.
    """
    
    def __init__(self, code: int, message: str):
        """
        Initialize CustomError with error code and message.
        
        Args:
            code: Error code from ErrorCodes enum
            message: Human-readable error message
        """
        super().__init__(f"[Error {code}] {message}")
        self.code = code
        self.message = message
