2016-09-09 111 views
0

我想忽略路由中的異常(java.util.zip.ZipException)。我想這個異常不被記錄。我已經嘗試onException子句並處理並繼續。但它沒有奏效。特別是處理和繼續不在一起工作。駱駝異常忽略

+0

顯示你的路線,所以我們可以看到代碼,並在可以發表評論。 –

回答

0

你是否標誌着作爲例外處理?

onException(ZipException.class) 
    .handled(true) 
    ...; 

http://camel.apache.org/exception-clause.html

// we mark the exchange as handled so the caller doesn't receive the 
// OrderFailedException but whatever we want to return instead 
+1

我是。它在這種情況下不起作用 – Neron

+0

您可以將您的路線添加到問題中嗎? –