Skip to content

Implement granular exceptions #6

@smazurov

Description

@smazurov

When setProp fails for any reason, we throw a \InvalidArgumentException. We should instead from \InvalidArgumentException, but throw our own, such as PropertyIsBlacklisted or PropertyNotFound. That way clients implementing Unum can catch specific exception to implement custom logic.

This can be done in BC compatible way by simply extending \InvalidArgumentException.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions