Skip to content

Rework the errors #103

@azmeuk

Description

@azmeuk

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.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions