无法在异常策略Mule ESB中捕获异常

时间:2016-04-06 10:48:34

标签: exception exception-handling mule-studio anypoint-studio

我在http连接器中收到以下错误,我需要捕获异常并执行操作

org.mule.module.http.internal.request.ResponseValidatorException: Response code 503 mapped as failure. Message payload is of type: BufferInputStream

以下是我在选择异常中编写的代码

<catch-exception-strategy when="#[exception.causedBy(http.internal.request.ResponseValidatorException)] " doc:name="ResponseValidator Exception Strategy">

但是catch块没有捕获异常

1 个答案:

答案 0 :(得分:0)

使用#[groovy:message.getExceptionPayload()。getRootException()。getMessage()]检查根异常消息 在默认的异常块中,获取根异常详细信息并在您选择的异常策略中使用它

相关问题