Exceptions

Custom exceptions thrown in qnexus usage.

exception qnexus.exceptions.AuthenticationError

Raised when there is an issue authenticating with the Nexus API.

exception qnexus.exceptions.JobError

Raised when a Nexus Job has errored.

exception qnexus.exceptions.NoUniqueMatch

Raised when a get call finds more than one match.

exception qnexus.exceptions.ResourceCreateFailed(
message: str,
status_code: int | None = None,
)

Raised when a resource couldn’t be created on the platform.

exception qnexus.exceptions.ResourceDeleteFailed(
message: str,
status_code: int | None = None,
)

Raised when a resource couldn’t be deleted on the platform.

exception qnexus.exceptions.ResourceFetchFailed(
message: str,
status_code: int | None = None,
)

Raised when a resource cannot be fetched from the platform to be read, or when expected data wasn’t found on an object.

exception qnexus.exceptions.ResourceUpdateFailed(
message: str,
status_code: int | None = None,
)

Raised when a resource cannot be updated on the platform.

exception qnexus.exceptions.ZeroMatches

Raised when a get call finds no matches.