🤔 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
🤔 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.
DuplicateStepDefinitionExceptioncould give access to the bothStepDefinitiona+b so one can further investigate the locations.⛏ Have you considered any alternatives or workarounds?
No response
📚 Any additional context?
No response