Stacktrace from Camel Context onException

后端 未结 1 1637
名媛妹妹
名媛妹妹 2021-01-01 13:20

I\'m trying to retrieve the stacktrace from the onException handler in Apache Camel:

   
            java.lang.Exception&         


        
相关标签:
1条回答
  • 2021-01-01 13:50

    Use exception.stacktrace to get the stacktrace. See the variables listed in the table at this page: http://camel.apache.org/simple

    <simple>${exception.stacktrace}</simple>
    

    There is also a ${exception.message} to refer to the exception message itself.

    0 讨论(0)
提交回复
热议问题