errorMsg.setErrorDetails(e.getErrorDetails());
conn.sendMessage( errorMsg );
}
private void sendErrorFromException(String callId, String procId, Throwable e) throws IOException, SerializationException{
OutputWampCallErrorMessage errorMsg = new OutputWampCallErrorMessage();
errorMsg.setCallId(callId);
try {
errorMsg.setErrorUri(new URI(procId));
} catch (URISyntaxException ex) {
}
errorMsg.setErrorDesc(e.getLocalizedMessage());
if(!e.getMessage().equals(e.getLocalizedMessage()))
errorMsg.setErrorDetails(e.getMessage());
conn.sendMessage(errorMsg);
}