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) { } + } + } +}