Quasar/Server/Core/ProtoBuf/ProtoException.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2014-07-08 05:58:53 -07:00
using System;
2014-07-30 08:32:25 -07:00
#if PLAT_BINARYFORMATTER && !(WINRT || PHONE8)
2014-07-08 05:58:53 -07:00
using System.Runtime.Serialization;
#endif
2014-07-08 05:58:53 -07:00
namespace ProtoBuf
{
/// <summary>
/// Indicates an error during serialization/deserialization of a proto stream.
/// </summary>
2014-07-30 08:32:25 -07:00
#if PLAT_BINARYFORMATTER && !(WINRT || PHONE8)
[Serializable]
2014-07-08 05:58:53 -07:00
#endif
public class ProtoException : Exception
{
/// <summary>Creates a new ProtoException instance.</summary>
public ProtoException()
{
}
2014-07-08 05:58:53 -07:00
/// <summary>Creates a new ProtoException instance.</summary>
public ProtoException(string message) : base(message)
{
}
2014-07-08 05:58:53 -07:00
/// <summary>Creates a new ProtoException instance.</summary>
public ProtoException(string message, Exception innerException) : base(message, innerException)
{
}
2014-07-08 05:58:53 -07:00
2014-07-30 08:32:25 -07:00
#if PLAT_BINARYFORMATTER && !(WINRT || PHONE8)
/// <summary>Creates a new ProtoException instance.</summary>
2014-07-08 05:58:53 -07:00
protected ProtoException(SerializationInfo info, StreamingContext context) : base(info, context) { }
#endif
}
}