-
Notifications
You must be signed in to change notification settings - Fork 263
/
EntitySchedulerException.cs
42 lines (38 loc) · 1.72 KB
/
EntitySchedulerException.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 used to describe various issues encountered by the entity scheduler.
/// </summary>
[Serializable]
public class EntitySchedulerException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="EntitySchedulerException"/> class.
/// </summary>
public EntitySchedulerException()
{
}
/// <summary>
/// Initializes an new instance of the <see cref="EntitySchedulerException"/> class.
/// </summary>
/// <param name="errorMessage">The message that describes the error.</param>
/// <param name="innerException">The exception that was caught.</param>
public EntitySchedulerException(string errorMessage, Exception innerException)
: base(errorMessage, innerException)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="EntitySchedulerException"/> 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 EntitySchedulerException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}