-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathOpenApiWriterException.cs
More file actions
41 lines (37 loc) · 1.5 KB
/
OpenApiWriterException.cs
File metadata and controls
41 lines (37 loc) · 1.5 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using Microsoft.OpenApi.Properties;
namespace Microsoft.OpenApi.Exceptions
{
/// <summary>
/// Exception type representing exceptions in the OpenAPI writer.
/// </summary>
public class OpenApiWriterException : OpenApiException
{
/// <summary>
/// Creates a new instance of the <see cref="OpenApiWriterException"/> class with default values.
/// </summary>
public OpenApiWriterException()
: this(SRResource.OpenApiWriterExceptionGenericError)
{
}
/// <summary>
/// Creates a new instance of the <see cref="OpenApiWriterException"/> class with an error message.
/// </summary>
/// <param name="message">The plain text error message for this exception.</param>
public OpenApiWriterException(string message)
: this(message, null)
{
}
/// <summary>
/// Creates a new instance of the <see cref="OpenApiWriterException"/> class with an error message and an inner exception.
/// </summary>
/// <param name="message">The plain text error message for this exception.</param>
/// <param name="innerException">The inner exception that is the cause of this exception to be thrown.</param>
public OpenApiWriterException(string message, Exception? innerException)
: base(message, innerException)
{
}
}
}