You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change is to throw more specific exceptions in several cases when
possible. If an object cannot be found, throw a more specific
NotFoundException. If an object exists but cannot be dereferenced to its
desired type, then throw a CannotDereferenceException.
/// Initializes a new instance of the <see cref="CannotDereferenceException"/> class.
14
+
/// </summary>
15
+
publicCannotDereferenceException()
16
+
{
17
+
}
18
+
19
+
/// <summary>
20
+
/// Initializes a new instance of the <see cref="CannotDereferenceException"/> class with a specified error message.
21
+
/// </summary>
22
+
/// <param name="message">A message that describes the error.</param>
23
+
publicCannotDereferenceException(stringmessage)
24
+
:base(message)
25
+
{
26
+
}
27
+
28
+
/// <summary>
29
+
/// Initializes a new instance of the <see cref="CannotDereferenceException"/> class with a specified error message and a reference to the inner exception that is the cause of this exception.
30
+
/// </summary>
31
+
/// <param name="message">The error message that explains the reason for the exception.</param>
32
+
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException"/> parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.</param>
0 commit comments