I have a doubt related with the java sdk
I’m doing connection tests and when it fails the exception returned is always the same com.couchbase.client.core.config.ConfigurationException with the message could not open bucket.
In this test i’m trying to connect to a non existing server and i’m not able to get the real exception cause without parsing the
throwable.getCause().getCause() that method returns
java.net.ConnectException: Conexión rehusada (In my machine, configured with an es_ES locale)
A solution could be do something like this
throwable.getCause().getCause().getClass().equals(java.net.ConnectException.class) but this is not fancy code
Is there any reason for not specialize that exception (ConfigurationException) and create more concret exceptions?
Thanks to all.