You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dd21979
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: scim2_models/exceptions.py
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -314,6 +314,45 @@ class SensitiveException(SCIMException):
314
314
)
315
315
316
316
317
+
classInvalidCursorException(SCIMException):
318
+
"""Cursor value is invalid.
319
+
320
+
Corresponds to scimType ``invalidCursor`` with HTTP status 400.
321
+
322
+
:rfc:`RFC 9865 Section 2.1 <9865#section-2.1>`
323
+
"""
324
+
325
+
status=400
326
+
scim_type="invalidCursor"
327
+
_default_detail="Cursor value is invalid. Cursor value SHOULD be empty to request the first page and set to the nextCursor or previousCursor value for subsequent queries."
328
+
329
+
330
+
classExpiredCursorException(SCIMException):
331
+
"""Cursor has expired.
332
+
333
+
Corresponds to scimType ``expiredCursor`` with HTTP status 400.
334
+
335
+
:rfc:`RFC 9865 Section 2.3 <9865#section-2.3>`
336
+
"""
337
+
338
+
status=400
339
+
scim_type="expiredCursor"
340
+
_default_detail="Cursor has expired. Do not wait longer than service provider's cursorTimeout to request additional pages."
341
+
342
+
343
+
classInvalidCountException(SCIMException):
344
+
"""Count value is invalid.
345
+
346
+
Corresponds to scimType ``invalidCount`` with HTTP status 400.
347
+
348
+
:rfc:`RFC 9865 Section 2.4 <9865#section-2.4>`
349
+
"""
350
+
351
+
status=400
352
+
scim_type="invalidCount"
353
+
_default_detail="Count value is invalid. Count value must be between 0 and service provider's maxPageSize and must be equal to the count value of the initial query."
"""According to :rfc:`RFC9865 §2 <9865#section-2>`, cursor values may only contain unreserved characters as defined in :rfc:`RFC3986 §2.3 <3986#section-2.3>`.
71
+
72
+
An empty cursor requests the first page, so a response cannot carry one.
"""According to :rfc:`RFC9865 §2 <9865#section-2>`, cursor values may only contain unreserved characters as defined in :rfc:`RFC3986 §2.3 <3986#section-2.3>`.
"""A string value specifying the type of pagination that the service provider defaults to when the client has not specified which method it wishes to use. Possible values are "cursor" and "index"."""
"""Positive integer specifying the maximum number of results returned in a page regardless of what is specified for the count in a query. The maximum number of results returned may be further restricted by other criteria."""
"""Positive integer specifying the minimum number of seconds that a cursor is valid between page requests. Clients waiting too long between cursor pagination requests may receive an invalid cursor error response. No value being specified may mean that there is no cursor timeout or that the cursor timeout is not a static duration."""
0 commit comments