Skip to content

Make CucumberException subclasses public and expose useful details #3142

@laeubi

Description

@laeubi

🤔 What's the problem you're trying to solve?

Today I noticed that there are a lot of exceptions extending CucumberException.
When Embedding cucumber one can not easily use them as they are all package private, making it impossible to have fine grained exception handling.

✨ What's your proposed solution?

Sub classes should become public and store useful information e.g. DuplicateStepDefinitionException could give access to the both StepDefinition a+b so one can further investigate the locations.

⛏ Have you considered any alternatives or workarounds?

No response

📚 Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions