Files
Moonlight/Moonlight/App/Exceptions/DisplayException.cs
2023-06-17 13:38:32 +02:00

39 lines
1015 B
C#

using System.Runtime.Serialization;
namespace Moonlight.App.Exceptions;
[Serializable]
public class DisplayException : Exception
{
public bool DoNotTranslate { get; set; } = false;
//
// For guidelines regarding the creation of new exception types, see
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
// and
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
//
public DisplayException()
{
}
public DisplayException(string message) : base(message)
{
}
public DisplayException(string message, bool doNotTranslate) : base(message)
{
DoNotTranslate = doNotTranslate;
}
public DisplayException(string message, Exception inner) : base(message, inner)
{
}
protected DisplayException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}