lastErrorMessage or lastErrorStackTrace

0
What is the difference between $lastErrorMessage and $lastErrorStackTrace? I've set custom error handling on a xml-mapping activity. I've set xsd validation in the mapping on true, so I want to log the error message in case of a xsd validation error. Do I need to use the error message or the stacktrace?
asked
1 answers
2

It's the difference between the .getMessage() and .getStackTrace() functions of a java exception. When an exception in java is thrown, a message is added, such as "object cannot be null". The stacktrace represents the path to the point in code where the exception was thrown.

answered