Skip to main content
Released

ErrorCatcher Transformer

Related products:FME Form
  • April 23, 2016
  • 3 replies
  • 80 views

takashi
Celebrity

Catches a translation error and outputs a feature containing an attribute that stores the last error message. If this transformer exists in the workspace (or a Bookmark?), a fatal error can be detected without stopping the translation, and the user can handle the error as a part of the workspace.

Works like the 'catch' clause in a C++ program or the 'except' clause in a Python script, the user could improve the robustness of the workspace.

The Terminator transformer should work like the 'throw' in C++ or 'raise' in Python if the 'ErrorCathcer' exists in the workspace.

[Addition] It might be ideal if a Bookmark could work like the 'try' clause.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img
  • November 4, 2019

Exactly what I would need right now!


revesz
Supporter
Forum|alt.badge.img+21
  • Supporter
  • November 4, 2019

I was thinking about submitting a similar idea.

My idea was a Custom Transformer that passes a feature to a specific (eg. <fail>) port when fatal error happens.


Forum|alt.badge.img+1

How many up votes does this need to get before we can get this implemented? This would be HUGE for a lot of transformers that don't have a rejected port and/or writers (JMSSender) that can't be used with FeatureWriter. I'm constantly having issues with some of the JMSSender logging errors, however, it doesn't change the status of the workspace. It just adds an error entry in the logs but the translation is "successful" Have not found a good way to parse the logs to test to ensure it was successful. This would be a big help!!!!!!