ExecuteGet exceptions
Thu, 08/02/2012 - 01:15
Hi. I use Couchbase client v.1.1.6 for .net. When i try use ExecuteGet method whith wrong server uri or start client without internet connection, IOperationResult does not contain Exception or InnerException, message contains the text "Failed to locate node". Is it possible to recive messages of error if connection is lost or does not exist?
The exception is handled during the construction of the client. It's not currently exposed so as to avoid throwing an exception in the object's constructor. So currently, the only way to know that the client is in an invalid state is to perform an operation and find that message.
That said, I am actively re-evaluating some of the plumbing of the client and working with Attila, who owns the dependency Enyim.Caching. Based on feedback on these forums and from other users, I will attempt to provide another means to validate the client state, perhaps through an IsStateValid method.