Couchbase Questions: exception resultCode

Have a Question? Get it answered by our community

jcsanyi's picture
Asked 1 year 1 month ago

Exceptions and Error Codes

The documentation seems to suggest that errors should be handled by catching exceptions, rather than calling getResultCode().

However - Exceptions don't seem to have any sort of a result code set, so it's impossible to detect a network error, for example, without doing string comparisons...