Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Conversation

@rkondratowicz
Copy link
Contributor

No description provided.

try {
result = transformer.transform(req.exceptionRecord);
} catch (Exception exc) {
throw new TransformationException("Error while calling provided transformer", exc);
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth phrasing it in such way that it's obvious that it's the transformer that threw the exception.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

try {
result = transformer.transform(req.exceptionRecord);
} catch (Exception exc) {
throw new TransformationException(
Copy link
Contributor

@nitinprabhu nitinprabhu Jul 8, 2019

Choose a reason for hiding this comment

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

just wondering what will caseworker see on the screen whole exception stack trace unless services implement an exception handler ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in case of Spring Boot, it depends whether the default 500 response is something CCD will be able to 'parse'.

Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I know, CCD displays a standard error message in such case.

@rkondratowicz rkondratowicz merged commit 1d7b112 into master Jul 8, 2019
@rkondratowicz rkondratowicz deleted the feature/throw-a-custom-exception-if-transformation-fails branch July 8, 2019 14:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants