comparison sat_pubsub/error.py @ 471:ed9e12701e0f

backend: return empty roster when `NotAllowedError` is raised in `getOwnerRoster`: No error is logged either, this case can happen often is roster permission is not granted. fix 390
author Goffi <goffi@goffi.org>
date Thu, 21 Oct 2021 17:31:01 +0200
parents 074037832daf
children
comparison
equal deleted inserted replaced
470:a549c8e17827 471:ed9e12701e0f
146 class NoPublishing(Error): 146 class NoPublishing(Error):
147 """ 147 """
148 This node does not support publishing. 148 This node does not support publishing.
149 """ 149 """
150 150
151
152 class BadAccessTypeError(Error): 151 class BadAccessTypeError(Error):
153 pass 152 pass
154 153
155 154
156 class ConstraintFailed(Error): 155 class ConstraintFailed(Error):
157 """ 156 """
158 A requirement is not fulfilled 157 A requirement is not fulfilled
159 """ 158 """
159
160 class NotAllowedError(Error):
161 """A permission necessary to do a privileged action is not given"""