Skip to content

Add Error Result type #7

@paulirwin

Description

@paulirwin

A good use case came up for having an "Error" result type. Although generally recommend that "Exceptions be exceptional" and let them bubble up to the caller, there is a case where we need to handle failures calling an external service from a command handler that fail for some reason, and return that reason to the caller as a possible expected failure (rather than an exceptional Exception).

This should include Type and Message properties. Users should be able to subclass this result type if needed for adding additional data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions