Skip to content

Exceptions should uniquely identify the target resource #743

@wmrutten

Description

@wmrutten

Exceptions thrown by the API while processing a resource (e.g. during de-serialization) should include (custom) properties that indicate the actual target resource, e.g. filename/url, resource id and/or canonical url.

This is particularly important in case of nested/recursive operations on multiple artifacts, e.g. when generating a snapshot of a profile with external dependencies.

Currently, there is no way for end users to determine the actual target resource of an error.

We may have to implement some custom derived exceptions, as runtime exceptions such as FormatException don't provide such identification properties out-of-the-box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions