Interface IResult
Default interface for all operation return types.
Namespace: Couchbase.Core.IO.Operations
Assembly: Couchbase.NetClient.dll
Syntax
public interface IResult
Properties
View SourceException
If Success is false and an exception has been caught internally, this field will contain the exception.
Declaration
Exception Exception { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
Message
If the operation wasn't succesful, a message indicating why it was not succesful.
Declaration
string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
Success
Returns true if the operation was succesful.
Declaration
bool Success { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
If Success is false, use the Message property to help determine the reason.
Methods
View SourceShouldRetry()
If the response indicates the request is retryable, returns true.
Declaration
bool ShouldRetry()
Returns
| Type | Description |
|---|---|
| bool |
Remarks
Intended for internal use only.