From b75ff1440955af93a59c9ca2fd6970b60a683159 Mon Sep 17 00:00:00 2001 From: ceee Date: Thu, 13 Jun 2013 11:36:06 +0200 Subject: [PATCH] add general APIException; --- PocketSharp/APIException.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PocketSharp/APIException.cs diff --git a/PocketSharp/APIException.cs b/PocketSharp/APIException.cs new file mode 100644 index 0000000..b1f4bc5 --- /dev/null +++ b/PocketSharp/APIException.cs @@ -0,0 +1,28 @@ +using System; +using System.Runtime.Serialization; + +namespace PocketSharp +{ + class APIException + { + [Serializable] + public class APIException : Exception + { + /// + /// necessary constructors for the exception + /// including inner exceptions and serialization + /// + public APIException() + : base() { } + + public APIException(string message) + : base(message) { } + + public APIException(string message, Exception innerException) + : base(message, innerException) { } + + protected APIException(SerializationInfo info, StreamingContext context) + : base(info, context) { } + } + } +}