Exceptions¶
Python-Redmine tries its best to provide human-readable errors in all situations. This is a list of all exceptions or warnings that Python-Redmine can throw/raise.
- exception redminelib.exceptions.BaseRedmineWarning¶
Base warning class for Redmine warnings.
- exception redminelib.exceptions.PerformanceWarning¶
Warning raised when there’s a possible performance impact.
- exception redminelib.exceptions.BaseRedmineError¶
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.FileObjectError¶
File-like object isn’t supported as it doesn’t support the read(size) method.
- 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 occurred on create/update resource.
- exception redminelib.exceptions.ResourceSetIndexError¶
Index doesn’t exist in the ResourceSet.
- exception redminelib.exceptions.ResourceSetFilterLookupError(lookup, f)¶
Resource set filter method received an invalid lookup in one of the filters.
- 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.VersionFormatError(version)¶
Version format provided isn’t supported. SemVer is the only format accepted.
- 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 specific 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.TimezoneError¶
Timezone is neither a string, suitable for a strptime %z, nor is an instance of tzinfo class.
- exception redminelib.exceptions.EngineClassError¶
Engine isn’t a class or isn’t a BaseEngine subclass.