Exceptions

Avalaible as nc_py_api.{exception_name}

class nc_py_api._exceptions.NextcloudException(status_code: int = 0, reason: str = '', info: str = '')[source]

The base exception for all Nextcloud operation errors.

class nc_py_api._exceptions.NextcloudExceptionNotModified(reason='Not modified', info: str = '')[source]

The exception indicates that there is no need to retransmit the requested resources.

class nc_py_api._exceptions.NextcloudExceptionNotFound(reason='Not found', info: str = '')[source]

The exception that is thrown during operations when the object is not found.

class nc_py_api._exceptions.NextcloudMissingCapabilities(reason='Missing capability', info: str = '')[source]

The exception that is thrown when required capability for API is missing.