Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set controller error class in the constructor #27

Merged
merged 1 commit into from Aug 25, 2015

Conversation

lennym
Copy link
Contributor

@lennym lennym commented Aug 24, 2015

At the moment the error class is only set as part of the wizard constructor, which means that controllers will only have their error class set when in the context of a wizard, and not when constructed standalone. This means that testing error handling and generation cannot be done whilst encapsulating the controller.

Setting the error class on a controller at construction time rather than in the wizard post-construction allows the behaviour to be inherited in standalone controllers.

At the moment the error class is only set as part of the wizard constructor, which means that controllers will only have their error class set when in the context of a wizard, and not when constructed standalone. This means that testing error handling and generation cannot be done whilst exncapsualting the controller.

Setting the error class on a controller at construction time rather than in the wizard post-construction allows the behaviour to be inherited in standalone controllers.
gavboulton added a commit that referenced this pull request Aug 25, 2015
Set controller error class in the constructor
@gavboulton gavboulton merged commit a12f367 into master Aug 25, 2015
@gavboulton gavboulton deleted the bugfix/error-class branch August 25, 2015 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants