jlolling / talendcomp_tJSONDoc

Talend components suite tJSONDoc* to work with JSON documents
Apache License 2.0
15 stars 9 forks source link

Error type on tJSONDocOpen/Save #19

Closed blag001 closed 5 years ago

blag001 commented 6 years ago

Hi,

I would like to log the error from JSON-Schema validation in a different file of my "runtime-error".

For now I catch all tJSONDocSave_1_ERROR_MESSAGE as json-schema error, but sometime I got Talend File Open error without any way to prevent this...

And same on the other way, in my runtime-error I catch the full json-schema error (this may be acceptable).

Could you add an ERROR_CODE we could check, or another way to find the nature of the error ?

Thanks a lot,

jlolling commented 6 years ago

I agree with you. I will add the necessary output.

blag001 commented 6 years ago

Thanks again for your time!

jlolling commented 5 years ago

This is in the current development version now solved. You can decide to let the component not to let die if the validation detects errors and you can get the errors in detail in the component tJSONDocValidationInput (referencing the component performing the validation).