forked from temporalio/sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow update RPC timeout/canceled exception (temporalio#283)
Fixes temporalio#250
- Loading branch information
Showing
6 changed files
with
110 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Temporalio/Exceptions/RpcTimeoutOrCanceledException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
|
||
namespace Temporalio.Exceptions | ||
{ | ||
/// <summary> | ||
/// Exception representing timeout or cancellation on some client calls. | ||
/// </summary> | ||
public class RpcTimeoutOrCanceledException : TemporalException | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="RpcTimeoutOrCanceledException"/> class. | ||
/// </summary> | ||
/// <param name="message">Message.</param> | ||
/// <param name="inner">Cause of the exception.</param> | ||
public RpcTimeoutOrCanceledException(string message, Exception? inner) | ||
: base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Temporalio/Exceptions/WorkflowUpdateRpcTimeoutOrCanceledException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
|
||
namespace Temporalio.Exceptions | ||
{ | ||
/// <summary> | ||
/// Exception representing when an update RPC timeout or cancellation. This is not to be | ||
/// confused with an update itself timing out or being canceled, this is just the call. | ||
/// </summary> | ||
public class WorkflowUpdateRpcTimeoutOrCanceledException : RpcTimeoutOrCanceledException | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// <see cref="WorkflowUpdateRpcTimeoutOrCanceledException"/> class. | ||
/// </summary> | ||
/// <param name="inner">Cause of the exception.</param> | ||
public WorkflowUpdateRpcTimeoutOrCanceledException(Exception? inner) | ||
: base("Timeout or cancellation waiting for update", inner) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters