Exceptions#

exception PatcherError(message: str = None, **kwargs)[source]#

Base exception class for exceptions with automatic traceback logging and concise error display.

Parameters:

message (str)

format_message() str[source]#

Format exception message properly.

Return type:

str

exception SetupError(message: str = None, **kwargs)[source]#

Raised if any errors occur during automatic setup.

Parameters:

message (str)

exception CredentialError(message: str = None, **kwargs)[source]#

Raised if any errors occur during saving or updating credentials.

Parameters:

message (str)

exception APIResponseError(message: str = None, **kwargs)[source]#

Raised when an API Call receives an unsuccessful status code.

Parameters:

message (str)

exception ShellCommandError(message: str = None, **kwargs)[source]#

Raised when the return code of a subprocess exec call is non-zero.

Parameters:

message (str)

exception TokenError(message: str = None, **kwargs)[source]#

Raised when there is an error fetching, saving or retrieving a bearer token from Jamf API.

Parameters:

message (str)

exception InstallomatorWarning[source]#

Custom warning to indicate Installomator-related issues.