private void sendError() { ResultsReceiver<ResultsMessage> receiver = null; synchronized (this) { receiver = this.resultsReceiver; this.resultsReceiver = null; if (receiver == null) { LogManager.logDetail(LogConstants.CTX_DQP, processingException, "Unable to send error to client as results were already sent.", requestID); //$NON-NLS-1$ return; } } LogManager.logDetail(LogConstants.CTX_DQP, processingException, "Sending error to client", requestID); //$NON-NLS-1$ ResultsMessage response = new ResultsMessage(); Throwable exception = this.processingException; if (this.options.isSanitizeMessages() && !LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { //we still convey an exception hierarchy here because the client logic looks for certian exception types exception = ExceptionUtil.sanitize(exception, false); } if (isCanceled) { exception = addCancelCode(exception); } setWarnings(response); response.setException(exception); setAnalysisRecords(response); receiver.receiveResults(response); }
private void sendError() { ResultsReceiver<ResultsMessage> receiver = null; synchronized (this) { receiver = this.resultsReceiver; this.resultsReceiver = null; if (receiver == null) { LogManager.logDetail(LogConstants.CTX_DQP, processingException, "Unable to send error to client as results were already sent.", requestID); //$NON-NLS-1$ return; } } LogManager.logDetail(LogConstants.CTX_DQP, processingException, "Sending error to client", requestID); //$NON-NLS-1$ ResultsMessage response = new ResultsMessage(); Throwable exception = this.processingException; if (this.options.isSanitizeMessages() && !LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { //we still convey an exception hierarchy here because the client logic looks for certian exception types exception = ExceptionUtil.sanitize(exception, false); } if (isCanceled) { exception = addCancelCode(exception); } setWarnings(response); response.setException(exception); setAnalysisRecords(response); receiver.receiveResults(response); }
private void sendError() { ResultsReceiver<ResultsMessage> receiver = null; synchronized (this) { receiver = this.resultsReceiver; this.resultsReceiver = null; if (receiver == null) { LogManager.logDetail(LogConstants.CTX_DQP, processingException, "Unable to send error to client as results were already sent.", requestID); //$NON-NLS-1$ return; } } LogManager.logDetail(LogConstants.CTX_DQP, processingException, "Sending error to client", requestID); //$NON-NLS-1$ ResultsMessage response = new ResultsMessage(); Throwable exception = this.processingException; if (this.options.isSanitizeMessages() && !LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { //we still convey an exception hierarchy here because the client logic looks for certian exception types exception = ExceptionUtil.sanitize(exception, false); } if (isCanceled) { exception = addCancelCode(exception); } setWarnings(response); response.setException(exception); setAnalysisRecords(response); receiver.receiveResults(response); }
setAnalysisRecords(response); receiver.receiveResults(response); return result;
setAnalysisRecords(response); receiver.receiveResults(response); return result;
setAnalysisRecords(response); receiver.receiveResults(response); return result;