-
Notifications
You must be signed in to change notification settings - Fork 263
/
FunctionFailedException.cs
48 lines (43 loc) · 1.63 KB
/
FunctionFailedException.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
43
44
45
46
47
48
// 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
{
/// <summary>
/// The exception that is thrown when a sub-orchestrator or activity function fails
/// with an error.
/// </summary>
/// <remarks>
/// The `InnerException` property of this instance will contain additional information
/// about the failed sub-orchestrator or activity function.
/// </remarks>
[Serializable]
public class FunctionFailedException : Exception
{
internal FunctionFailedException()
{
}
/// <summary>
/// Initializes a new instance of a <see cref="FunctionFailedException"/>.
/// </summary>
/// <param name="message">A message describing where to look for more details.</param>
public FunctionFailedException(string message)
: base(message)
{
}
/// <summary>
/// Initializes a new instance of a <see cref="FunctionFailedException"/>.
/// </summary>
/// <param name="message">A message describing where to look for more details.</param>
/// <param name="innerException">The exception that caused the function to fail.</param>
public FunctionFailedException(string message, Exception innerException)
: base(message, innerException)
{
}
internal FunctionFailedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}