-
Notifications
You must be signed in to change notification settings - Fork 266
/
OperationErrorException.cs
42 lines (38 loc) · 1.64 KB
/
OperationErrorException.cs
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
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Runtime.Serialization;
namespace Microsoft.Azure.WebJobs.Extensions.DurableTask
{
/// <summary>
/// Exception result representing an operation that failed, in case
/// the original exception is not serializable, or out-of-proc.
/// </summary>
[Serializable]
public class OperationErrorException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="OperationErrorException"/> class.
/// </summary>
public OperationErrorException()
{
}
/// <summary>
/// Initializes an new instance of the <see cref="OperationErrorException"/> class.
/// </summary>
/// <param name="errorMessage">The message that describes the error.</param>
public OperationErrorException(string errorMessage)
: base(errorMessage)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="OperationErrorException"/> class with serialized data.
/// </summary>
/// <param name="info">The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.</param>
protected OperationErrorException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}