Skip to main content

DazapizError

Base class of every error dazapiz raises.

Usage

Source

DazapizError()

Catch it to handle any dazapiz failure. Errors from the Azure SDK itself, such as azure.core.exceptions.ClientAuthenticationError from a credential, are not wrapped and do not derive from it.

Examples

from dazapiz import DazapizError, refresh_token_from_az_cli

try:
    info = refresh_token_from_az_cli()
except DazapizError as err:
    print(f"No az login token: {err}")