Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

added support to hector exceptions to display the host #634

merged 1 commit into from Sep 6, 2013


None yet
2 participants

shaunkalley commented Sep 5, 2013

Added a CassandraHost reference to HectorException along with getHost() and setHost() methods, and overrode getMessage() to prefix the message with the host if its not null. Added a second method to ExceptionsTranslator that takes a host along with a Throwable, and modified ExceptionsTranslatorImpl to push the host into the exceptions that are returned. Also modified HConnectionManager to use this method by trying to detect the host from the pool or client if possible.

zznate added a commit that referenced this pull request Sep 6, 2013

Merge pull request #634 from shaunkalley/AddedHostToException
added support to hector exceptions to display the host

@zznate zznate merged commit defc4e5 into hector-client:master Sep 6, 2013


zznate commented Sep 6, 2013

That's really handy. Thanks @shaunkalley!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment