8000 Use specific exception class for Workflow exceptions [Workflow] [Feature] [RFC] · Issue #26581 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Use specific exception class for Workflow exceptions [Workflow] [Feature] [RFC] #26581
Closed
@andrewtch

Description

@andrewtch
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 4.0.0

As it is hard to tell Workflow exceptions from other Logic exceptions, it would be nice to have specific exception class instead of LogicException. It could be WorkflowException extending LogicException, with additional workflow and transition fields.

Currently, one needs to parse exceptions message to make sure it comes from the Workflow component.

Can make a PR if this looks good enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRFCRFC = Request For Comments (proposals about features that you want to be discussed)Workflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0