-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDialogParentNotFoundException.cs
More file actions
36 lines (33 loc) · 1.32 KB
/
DialogParentNotFoundException.cs
File metadata and controls
36 lines (33 loc) · 1.32 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
namespace S7Tools.Core.Exceptions;
/// <summary>
/// Exception thrown when a dialog parent window cannot be resolved or found.
/// This typically occurs when attempting to show a dialog but the main window or parent control is not available.
/// </summary>
public class DialogParentNotFoundException : S7ToolsException
{
/// <summary>
/// Initializes a new instance of the <see cref="DialogParentNotFoundException"/> class with a default message.
/// </summary>
public DialogParentNotFoundException()
: base("Could not get main window for dialog parent")
{
}
/// <summary>
/// Initializes a new instance of the <see cref="DialogParentNotFoundException"/> class with a custom message.
/// </summary>
/// <param name="message">The custom error message.</param>
public DialogParentNotFoundException(string message)
: base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="DialogParentNotFoundException"/> class with a custom message
/// and inner exception.
/// </summary>
/// <param name="message">The custom error message.</param>
/// <param name="innerException">The inner exception.</param>
public DialogParentNotFoundException(string message, Exception innerException)
: base(message, innerException)
{
}
}