blob: 147e85709f8838ab46b661b7cd301f40cd79f541 (
plain)
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
|
// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.Serialization;
namespace Microsoft.Internal
{
partial class Assumes
{
// The exception that is thrown when an internal assumption failed.
[Serializable]
[SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic")]
private class InternalErrorException : Exception
{
public InternalErrorException(string message)
: base(string.Format(CultureInfo.CurrentCulture, Strings.InternalExceptionMessage, message))
{
}
#if !SILVERLIGHT
[System.Security.SecuritySafeCritical]
protected InternalErrorException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#endif
}
}
}
|