-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocalDbException.cs
76 lines (60 loc) · 2.36 KB
/
LocalDbException.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// @(#) LocalDbException.cs
//
// Project: usis.Data.LocalDb
// System: Microsoft Visual Studio 2022
// Author: Udo Schäfer
//
// Copyright (c) 2018-2023 usis GmbH. All rights reserved.
using System;
using System.ComponentModel;
using System.Runtime.Serialization;
namespace usis.Data.LocalDb
{
// ----------------------
// LocalDbException class
// ----------------------
/// <summary>
/// Throws an exception for a SQL Server Express LocalDB error.
/// </summary>
/// <seealso cref="Win32Exception"/>
[Serializable]
public class LocalDbException : Win32Exception
{
#region construction
// ------------
// construction
// ------------
/// <summary>
/// Initializes a new instance of the <see cref="LocalDbException"/>
/// class.
/// </summary>
public LocalDbException() { }
/// <summary>
/// Initializes a new instance of the <see cref="LocalDbException"/>
/// class.
/// </summary>
/// <param name="message">A detailed description of the error.</param>
public LocalDbException(string message) : base(message) { }
/// <summary>
/// Initializes a new instance of the <see cref="LocalDbException"/>
/// class.
/// </summary>
/// <param name="message">A detailed description of the error.</param>
/// <param name="innerException">A reference to the inner exception that
/// is the cause of this exception.</param>
public LocalDbException(string message, Exception innerException) : base(message, innerException) { }
/// <summary>
/// Initializes a new instance of the <see cref="LocalDbException"/>
/// class.
/// </summary>
/// <param name="info">The <see cref="SerializationInfo"/> associated
/// with this exception.</param>
/// <param name="context">A <see cref="StreamingContext"/> that
/// represents the context of this exception.</param>
protected LocalDbException(SerializationInfo info, StreamingContext context) : base(info, context) { }
internal LocalDbException(uint hr, string message) : base((int)hr, message) { }
#endregion
}
}
// eof "LocalDbException.cs"