21 lines
634 B
C#
21 lines
634 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Kreta.Framework.Exceptions
|
|
{
|
|
[Serializable]
|
|
public sealed class PanicException : Exception
|
|
{
|
|
const string _defaultMessage = "Don't panic!";
|
|
|
|
public PanicException() : base(_defaultMessage) { }
|
|
|
|
public PanicException(string message) : base(message) { }
|
|
|
|
public PanicException(string message, Exception inner) : base(message, inner) { }
|
|
|
|
public PanicException(Exception inner) : base(_defaultMessage, inner) { }
|
|
|
|
PanicException(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
|
}
|
|
}
|