Class ModifyFailure
If the modify function of the Update throws an exception the reply message
will be this ModifyFailure message. The original exception is included as Cause.
Inherited Members
Namespace: Akka.DistributedData
Assembly: Akka.DistributedData.dll
Syntax
[Serializable]
public sealed class ModifyFailure : IUpdateFailure, IUpdateResponse, INoSerializationVerificationNeeded
Constructors
| Edit this page View SourceModifyFailure(IKey, string, Exception, object)
Declaration
public ModifyFailure(IKey key, string errorMessage, Exception cause, object request)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key | |
| string | errorMessage | |
| Exception | cause | |
| object | request |
Properties
| Edit this page View SourceCause
Returns a cause of the exception.
Declaration
public Exception Cause { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
ErrorMessage
Declaration
public string ErrorMessage { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsSuccessful
Returns true if Update request has completed successfully.
Declaration
public bool IsSuccessful { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Key
Key, under with updated data is going to be stored.
Declaration
public IKey Key { get; }
Property Value
| Type | Description |
|---|---|
| IKey |
Request
Optional object that can be used to correlate this response with particular Update request.
Declaration
public object Request { get; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
| Edit this page View SourceThrowOnFailure()
Throws an exception if Update request has failed.
Declaration
public void ThrowOnFailure()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page