Exceptions

Python-Redmine tries it’s best to provide human readable errors in all situations. This is a list of all exceptions that Python-Redmine can throw.

exception redminelib.exceptions.BaseRedmineError(*args, **kwargs)

Base exception class for Redmine exceptions.

exception redminelib.exceptions.ResourceError

Unsupported Redmine resource exception.

exception redminelib.exceptions.NoFileError

File doesn’t exist or is empty exception.

exception redminelib.exceptions.ResourceNotFoundError

Requested resource doesn’t exist.

exception redminelib.exceptions.ConflictError

Resource version on the server is newer than on the client.

exception redminelib.exceptions.AuthError

Invalid authentication details.

exception redminelib.exceptions.ImpersonateError

Invalid impersonate login provided.

exception redminelib.exceptions.ServerError

Redmine internal error.

exception redminelib.exceptions.RequestEntityTooLargeError

Size of the request exceeds the capacity limit on the server.

exception redminelib.exceptions.UnknownError(status_code)

Redmine returned unknown error.

exception redminelib.exceptions.ValidationError(error)

Redmine validation errors occured on create/update resource.

exception redminelib.exceptions.ResourceSetIndexError

Index doesn’t exist in the ResourceSet.

exception redminelib.exceptions.ResourceSetFilterParamError

Resource set filter method expects to receive either a list or tuple.

exception redminelib.exceptions.ResourceBadMethodError

Resource doesn’t support the requested method.

exception redminelib.exceptions.ResourceFilterError

Resource doesn’t support requested filter(s).

exception redminelib.exceptions.ResourceNoFiltersProvidedError

No filter(s) provided.

exception redminelib.exceptions.ResourceNoFieldsProvidedError

No field(s) provided.

exception redminelib.exceptions.ResourceAttrError

Resource doesn’t have the requested attribute.

exception redminelib.exceptions.ReadonlyAttrError

Resource can’t set attribute that is read only.

exception redminelib.exceptions.VersionMismatchError(feature)

Feature isn’t supported on specified Redmine version.

exception redminelib.exceptions.ResourceVersionMismatchError

Resource isn’t supported on specified Redmine version.

exception redminelib.exceptions.ResultSetTotalCountError

ResultSet hasn’t been yet evaluated and cannot yield a total_count.

exception redminelib.exceptions.CustomFieldValueError

Custom fields should be passed as a list of dictionaries.

exception redminelib.exceptions.ResourceRequirementsError(requirements)

Resource requires specified Redmine plugin(s) to function.

exception redminelib.exceptions.FileUrlError

URL provided to download a file can’t be parsed.

exception redminelib.exceptions.ForbiddenError

Requested resource is forbidden.

exception redminelib.exceptions.JSONDecodeError(response)

Unable to decode received JSON.

exception redminelib.exceptions.ExportNotSupported

Export functionality not supported by resource.

exception redminelib.exceptions.ExportFormatNotSupportedError

The given format isn’t supported by resource.

exception redminelib.exceptions.HTTPProtocolError

Wrong HTTP protocol usage.

exception redminelib.exceptions.EngineClassError

Engine isn’t a class or isn’t a BaseEngine subclass.