-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Find a clever way to reuse the Error objects in the Python exceptions. This would improve the error management in PatchOp.
Also it would be nice to provide additional context data. For example, the invalidPath error should indicate which path is invalid.
scim2-models/scim2_models/messages/error.py
Lines 74 to 80 in 7fdcb76
| def make_invalid_path_error(cls) -> "Error": | |
| """Pre-defined error intended to be raised when the "path" attribute was invalid or malformed (see :rfc:`Figure 7 of RFC7644 <7644#section-3.5.2>`).""" | |
| return Error( | |
| status=400, | |
| scim_type="invalidPath", | |
| detail="""The "path" attribute was invalid or malformed (see Figure 7 of RFC7644).""", | |
| ) |
Metadata
Metadata
Assignees
Labels
No labels