forked from App-vNext/Polly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExecutionRejectedException.cs
More file actions
59 lines (52 loc) · 2.11 KB
/
Copy pathExecutionRejectedException.cs
File metadata and controls
59 lines (52 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#if !NETCOREAPP
using System.Runtime.Serialization;
#endif
using Polly.Telemetry;
namespace Polly;
/// <summary>
/// Exception thrown when a policy rejects execution of a delegate.
/// <remarks>More specific exceptions which derive from this type, are generally thrown.</remarks>
/// </summary>
public abstract class ExecutionRejectedException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="ExecutionRejectedException"/> class.
/// </summary>
protected ExecutionRejectedException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ExecutionRejectedException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
protected ExecutionRejectedException(string message)
: base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ExecutionRejectedException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="inner">The inner exception.</param>
protected ExecutionRejectedException(string message, Exception inner)
: base(message, inner)
{
}
#pragma warning disable RS0016 // Add public types and members to the declared API
#if !NETCOREAPP
/// <summary>
/// Initializes a new instance of the <see cref="ExecutionRejectedException"/> class.
/// </summary>
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param>
protected ExecutionRejectedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#endif
#pragma warning restore RS0016 // Add public types and members to the declared API
/// <summary>
/// Gets the source of the strategy which has thrown the exception, if known.
/// </summary>
public virtual ResilienceTelemetrySource? TelemetrySource { get; internal set; }
}