mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] TEngineServer
[+] TEngineServer
This commit is contained in:
30
Assets/GameScripts/ThirdParty/Protobuf-net/ProtoException.cs
vendored
Normal file
30
Assets/GameScripts/ThirdParty/Protobuf-net/ProtoException.cs
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
#if PLAT_BINARYFORMATTER && !(COREFX || PROFILE259)
|
||||
using System.Runtime.Serialization;
|
||||
#endif
|
||||
namespace ProtoBuf
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates an error during serialization/deserialization of a proto stream.
|
||||
/// </summary>
|
||||
#if PLAT_BINARYFORMATTER && !(COREFX || PROFILE259)
|
||||
[Serializable]
|
||||
#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) { }
|
||||
|
||||
#if PLAT_BINARYFORMATTER && !(COREFX || PROFILE259)
|
||||
/// <summary>Creates a new ProtoException instance.</summary>
|
||||
protected ProtoException(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
||||
#endif
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user