.getUimaContextAdmin().getQualifiedContextName();
}
Exception remoteException = new UimaAsDelegateException("----> Controller:"
+ controllerName + " Received Exception " + casid_msg + " From Delegate:"
+ delegateKey, (Exception) object);
ErrorContext errorContext = new ErrorContext();
errorContext.add(AsynchAEMessage.Command, aMessageContext
.getMessageIntProperty(AsynchAEMessage.Command));
errorContext.add(AsynchAEMessage.MessageType, aMessageContext
.getMessageIntProperty(AsynchAEMessage.MessageType));
if (!isCpCError) {
errorContext.add(AsynchAEMessage.CasReference, casReferenceId);
}
errorContext.add(AsynchAEMessage.Endpoint, aMessageContext.getEndpoint());
getController().getErrorHandlerChain().handle(remoteException, errorContext,
getController());
}
} catch (Exception e) {
ErrorContext errorContext = new ErrorContext();
errorContext.add(AsynchAEMessage.Command, AsynchAEMessage.Process);
errorContext.add(AsynchAEMessage.CasReference, casReferenceId);
errorContext.add(AsynchAEMessage.Endpoint, aMessageContext.getEndpoint());
getController().getErrorHandlerChain().handle(e, errorContext, getController());
}
}