def get_app()

in dell_ai/apps.py [0:0]


def get_app(client: "DellAIClient", app_id: str) -> App:
    """
    Get detailed information about a specific application.

    Args:
        client: The Dell AI client
        app_id: The application ID

    Returns:
        Detailed application information as an App object

    Raises:
        ResourceNotFoundError: If the application is not found
        AuthenticationError: If authentication fails
        APIError: If the API returns an error
    """
    try:
        endpoint = f"{constants.APPS_ENDPOINT}/{app_id}"
        response = client._make_request("GET", endpoint)
        return App.model_validate(response)
    except ResourceNotFoundError:
        # Reraise with more specific information
        raise ResourceNotFoundError("app", app_id)