Skip to content

Why does you not throw ArangoDBException in HttpCommunication.java, the inserting action was failed but I cannot handle this event #485

@truongmaicongtri

Description

@truongmaicongtri

catch (final IOException e) {
hostHandler.fail(e);
if (hostHandle != null && hostHandle.getHost() != null) {
hostHandle.setHost(null);
}
final Host failedHost = host;
host = hostHandler.get(hostHandle, accessType);
if (host != null) {
LOGGER.warn(String.format("Could not connect to %s", failedHost.getDescription()), e);
LOGGER.warn(String.format("Could not connect to %s. Try connecting to %s",
failedHost.getDescription(), host.getDescription()));
<why does you not throw ArangoDBException? at here>
} else {
LOGGER.error(e.getMessage(), e);
throw new ArangoDBException(e);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions