use of iris.client_bff.status.AppStatusInternalException in project iris-client by iris-connect.
the class EPSStatusClient method checkApp.
public AppInfo checkApp(String epsEndpoint) {
var methodName = epsEndpoint + "._ping";
try {
var ping = epsRpcClient.invoke(methodName, null, Ping.class);
var name = ping.serverInfo != null ? ping.serverInfo.name : messages.getMessage("StatusService.unknown_app_name");
return new AppInfo(name, ping.version);
} catch (ConnectException | SocketTimeoutException e) {
// Connection timeout
throw new EpsConnectionException(e.getMessage());
} catch (JsonRpcClientException e) {
throw new AppStatusException(e.getMessage());
} catch (Throwable t) {
throw new AppStatusInternalException(t.getMessage(), t);
}
}
Aggregations