Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

ExecuteGet exceptions

1 reply [Last post]
  • Login or register to post comments
Thu, 08/02/2012 - 01:15
why_nonsql
Offline
Joined: 08/02/2012
Groups: None

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?

Top
  • Login or register to post comments
Mon, 08/06/2012 - 07:14
john
Offline
Joined: 01/05/2012
Groups: None

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.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker