meichthys / nextcloud_monitor

Python wrapper around Nextcloud monitor api
MIT License
2 stars 2 forks source link

add more specific exceptions #4

Closed mib1185 closed 1 year ago

mib1185 commented 1 year ago

there are now 3 specific exceptions, inherited from NextcloudMonitorError

NextcloudMonitorAuthorizationError

is raised in case the nextcloud server returns http/401 unauthorized (wrong credentials, or locked user)

NextcloudMonitorConnectionError

is raised in case the nextcloud server could not be reached (wrong url, url not reachable, dns issues, ...)

NextcloudMonitorRequestError

is raised in case the nextcloud server responses with some faulty data or encounter internal issues like (http/500)

meichthys commented 1 year ago

Looks good. Thanks!