-
Notifications
You must be signed in to change notification settings - Fork 7
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
#2256 Add new Exception and change message to show Module #2253
#2256 Add new Exception and change message to show Module #2253
Conversation
…-when-parent-container-not-found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rwmcintosh Thoughts? Not fond of generating lots of specific exception, especially without parameters
Yeah, we looked at this one together and it's just that we'd be passing the building block and/or module and/or the string down into where the exception is thrown (it's a couple calls lower in the stack) just in case the parent container can't be found. This way, we just throw this specific exception and catch it where the domain objects are being held so that we can create a meaningful message. |
Ok so no reason for me to make this exception public. Can it be declared internal , even with the file itself ? This should not be used anywhere else Also is base() required ? |
Yeah good idea. Nested class even. |
Fixes #2256
Description
Changed the way we display the message for this exception by adding the module and building block information to it.
Type of change
Please mark relevant options with an
x
in the brackets.How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Reviewer checklist
Mark everything that needs to be checked before merging the PR.
This change requires a documentation update
above is selectedScreenshots (if appropriate):
Questions (if appropriate):