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

fix: error handling Pipe ResultWithErrorMessage fails on TypeRolOmschrijving #255

Conversation

RayetSena
Copy link
Contributor

No description provided.

@@ -71,7 +76,7 @@
<Param name="code" value="TechnicalError" /> <!-- codes: TechnicalError, TranslationError, ConfigurationError-->
<Param name="reason"
pattern="No roltype with matching omschrijving is found" />
<Param name="details" pattern="omschrijving:{TypeRolOmschrijving} cannot be found in the list of roltypes"/>
<Param name="details" pattern="omschrijving: {TypeRolOmschrijving} cannot be found in the list of roltypes"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is much easier to simply define TypeRolOmschrijving in the XsltPipe that is building the error itself as a param. A pattern tries to resolve the variable from a sessionKey or a param. The only thing to keep in mind with resolving from a param, is that it needs to be defined above the param with the pattern.

Also with ZaakBrug, always add ignoreUnresolvablePatternElements="true" when using patterns.

Example:

@MLenterman MLenterman changed the title fix: TypeRolOmschrijving was missing fix: error handling Pipe ResultWithErrorMessage fails on TypeRolOmschrijving Jan 11, 2024
@MLenterman MLenterman merged commit 6d9db22 into master Jan 11, 2024
7 checks passed
@MLenterman MLenterman deleted the 232-error-handling-pipe-resultwitherrormessage-fails-on-typerolomschrijving branch January 11, 2024 14:02
MLenterman pushed a commit that referenced this pull request Jan 11, 2024
## [1.14.3](v1.14.2...v1.14.3) (2024-01-11)

### 🐛 Bug Fixes

* error handling Pipe ResultWithErrorMessage fails on TypeRolOmschrijving ([#255](#255)) ([6d9db22](6d9db22))
@MLenterman
Copy link
Collaborator

🎉 This PR is included in version 1.14.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error handling Pipe ResultWithErrorMessage fails on TypeRolOmschrijving
2 participants