[
https://issues.apache.org/jira/browse/CAMEL-21158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-21158.
---------------------------------
Assignee: Claus Ibsen
Resolution: Fixed
> Add exception as variable to expression languages
> -------------------------------------------------
>
> Key: CAMEL-21158
> URL: https://issues.apache.org/jira/browse/CAMEL-21158
> Project: Camel
> Issue Type: Wish
> Components: came-core
> Affects Versions: 4.7.0
> Reporter: Raymond
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.9.0
>
>
> Currently, the simple language has ${exception} available as variable. When
> checking other expression languages like Groovy, JavaScript, Velocity etc.
> these are often not available.
> I tried to get the exception in those languages through the exchange variable
> which is mostly available, something like:
> exchange.getException()
> or
> exchange.exception
> But these returned null.
> It would be more convenient when the exception is directly available as a
> predefined variable.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)