add general APIException;

This commit is contained in:
2013-06-13 11:36:06 +02:00
parent a1386272c3
commit b75ff14409
+28
View File
@@ -0,0 +1,28 @@
using System;
using System.Runtime.Serialization;
namespace PocketSharp
{
class APIException
{
[Serializable]
public class APIException : Exception
{
/// <summary>
/// necessary constructors for the exception
/// including inner exceptions and serialization
/// </summary>
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) { }
}
}
}