additionalMsg = "(error object of invalid type: " + error.getClass().getName() + ")";
}
// Try to find job context. If available use the job log to put out error
Logger theLog = context.getlog();
JobContext jobContext = null;
Object jcObj = thisObj.get("jobContext", thisObj);
if (jcObj != null && jcObj instanceof NativeJavaObject) {
jcObj = ((NativeJavaObject) jcObj).unwrap();
if (jcObj instanceof JobContext) {
jobContext = (JobContext) jcObj;
theLog = jobContext.getLog();
}
}
// Put out
if (additionalMsg != null) {