init
This commit is contained in:
21
Framework/Exceptions/PanicException.cs
Normal file
21
Framework/Exceptions/PanicException.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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) { }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user