You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2009/09/02 17:23:10 UTC
svn commit: r810558 [3/3] - in
/incubator/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/error:
./ handler/
Modified: incubator/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/error/handler/UnknownDestinationHandler.java
URL: http://svn.apache.org/viewvc/incubator/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/error/handler/UnknownDestinationHandler.java?rev=810558&r1=810557&r2=810558&view=diff
==============================================================================
--- incubator/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/error/handler/UnknownDestinationHandler.java (original)
+++ incubator/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/error/handler/UnknownDestinationHandler.java Wed Sep 2 15:23:08 2009
@@ -32,36 +32,32 @@
import org.apache.uima.aae.message.AsynchAEMessage;
import org.apache.uima.util.Level;
-public class UnknownDestinationHandler extends ErrorHandlerBase implements ErrorHandler
-{
-private static final Class CLASS_NAME = UnknownDestinationHandler.class;
-
- public UnknownDestinationHandler(Map anEndpointThreasholdMap)
- {
- super(anEndpointThreasholdMap);
- }
-
- public UnknownDestinationHandler()
- {
- }
-
- public boolean handleError(Throwable t, ErrorContext anErrorContext, AnalysisEngineController aController)
- {
- if (t instanceof UnknownDestinationException)
- {
- String casReferenceId = null;
- if (anErrorContext.containsKey(AsynchAEMessage.CasReference))
- {
- casReferenceId = (String) anErrorContext.get(AsynchAEMessage.CasReference);
- }
+public class UnknownDestinationHandler extends ErrorHandlerBase implements ErrorHandler {
+ private static final Class CLASS_NAME = UnknownDestinationHandler.class;
+
+ public UnknownDestinationHandler(Map anEndpointThreasholdMap) {
+ super(anEndpointThreasholdMap);
+ }
+
+ public UnknownDestinationHandler() {
+ }
+
+ public boolean handleError(Throwable t, ErrorContext anErrorContext,
+ AnalysisEngineController aController) {
+ if (t instanceof UnknownDestinationException) {
+ String casReferenceId = null;
+ if (anErrorContext.containsKey(AsynchAEMessage.CasReference)) {
+ casReferenceId = (String) anErrorContext.get(AsynchAEMessage.CasReference);
+ }
if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) {
- UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, CLASS_NAME.getName(), "handleError", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_handling_bad_destination__INFO", new Object[] { null, casReferenceId });
+ UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, CLASS_NAME.getName(), "handleError",
+ UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_handling_bad_destination__INFO",
+ new Object[] { null, casReferenceId });
}
- return true;
- }
- return false;
- }
-
+ return true;
+ }
+ return false;
+ }
}