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