multipackage.exceptions module

Internal exceptions that multipackage might throw.

Summary

Exceptions:

InternalError An internal error has occurred.
InvalidEnvironmentError Raised when a required environment variable is not present.
InvalidPackageError Raised when a required support package has an invalid version.
InvalidSettingError Raised when a setting in settings.json is not present or invalid.
ManualInterventionError Raised when there is a situation that requires manual intervention.
MissingPackageError Raised when a required support package is not present.
UsageError Raised when a multipackage API method is called incorrectly.

Reference

exception multipackage.exceptions.UsageError(message, suggestion=None)[source]

Bases: Exception

Raised when a multipackage API method is called incorrectly.

exception multipackage.exceptions.InvalidSettingError(variable_name, reason, suggestion=None)[source]

Bases: Exception

Raised when a setting in settings.json is not present or invalid.

exception multipackage.exceptions.InvalidEnvironmentError(variable_name, reason, suggestion=None)[source]

Bases: Exception

Raised when a required environment variable is not present.

exception multipackage.exceptions.MissingPackageError(package_name, reason)[source]

Bases: Exception

Raised when a required support package is not present.

exception multipackage.exceptions.InvalidPackageError(package_name, version, required_version, reason)[source]

Bases: Exception

Raised when a required support package has an invalid version.

exception multipackage.exceptions.ManualInterventionError(message, path=None)[source]

Bases: Exception

Raised when there is a situation that requires manual intervention.

exception multipackage.exceptions.InternalError(reason, suggestion=None)[source]

Bases: Exception

An internal error has occurred.