Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.17.3
-
None
-
Novice
Description
When using
ProcessorDefinition.java
throwException(Class<? extends Exception> type, String message)
to define a Exception and having the tracing set to True in Camel context, if an exception occurred, it will call
ThrowExceptionProcessor.java
public String getTraceLabel() { return "throwException[" + this.exception.getClass().getSimpleName() + "]"; }
But this.exception is null.
A patch could be:
ThrowExceptionProcessor.java
public String getTraceLabel() { String className= this.exception==null?this.type.getSimpleName():this.exception.getClass().getSimpleName(); return "throwException[" + className + "]"; }
Attachments
Issue Links
- links to