C# Class RiakClient.RiakResult

Represents the collection of result information for a Riak operation that has no specific return value.
ファイルを表示 Open project: basho/riak-dotnet-client Class Usage Examples

Private Properties

Property Type Description
FromError RiakResult
FromException RiakResult
Success RiakResult

Public Methods

Method Description
RiakResult ( ResultCode resultCode, Exception exception ) : System

Initializes a new instance of the RiakResult class.

RiakResult ( bool isSuccess = true, string errorMessage = null, ResultCode resultCode = ResultCode.Success ) : System

Initializes a new instance of the RiakResult class.

Protected Methods

Method Description
RiakResult ( bool isSuccess, ResultCode resultCode, Exception exception, string errorMessage, bool nodeOffline ) : System

Private Methods

Method Description
FromError ( ResultCode code, string message, bool nodeOffline ) : RiakResult
FromException ( ResultCode code, Exception ex, bool nodeOffline ) : RiakResult
Success ( ) : RiakResult

Method Details

RiakResult() public method

Initializes a new instance of the RiakResult class.
public RiakResult ( ResultCode resultCode, Exception exception ) : System
resultCode ResultCode The .
exception System.Exception The . Required.
return System

RiakResult() protected method

protected RiakResult ( bool isSuccess, ResultCode resultCode, Exception exception, string errorMessage, bool nodeOffline ) : System
isSuccess bool
resultCode ResultCode
exception System.Exception
errorMessage string
nodeOffline bool
return System

RiakResult() public method

Initializes a new instance of the RiakResult class.
public RiakResult ( bool isSuccess = true, string errorMessage = null, ResultCode resultCode = ResultCode.Success ) : System
isSuccess bool true if the result represents Success, false otherwise. Defaults to true.
errorMessage string The error message, if any. Defaults to null.
resultCode ResultCode The . Defaults to ResultCode.Success.
return System