Can I get error messages (or Exceptions) of graph executing?
Now I can get them only from a log. I write custom log appender, but may be can be other right way?
Now I can get them only from a log. I write custom log appender, but may be can be other right way?
-
What about RunGraph component? Or if you run your graph from java code, you can use getLogger() method of TransformationGraph object. -
Or if you run your graph from java code, you can use getLogger() method of TransformationGraph object.
getLogger returns object of classorg.apache.commons.logging.Log
It has only logging methods - debug, info, warn etc..
What I need to do with it to get Error Messages? -
Hello!
I suppose you run a transformation graph on your own. Whenever a graph is finished you get a result, which is just enum with a final status - finishedOk/error/aborted. If the result is 'error', you can get cause exception and/or error message via watchdog class and its methods getCauseException(), getCauseGraphElement(), getErrorMessage().
Martin
Please sign in to leave a comment.
Comments 3