2019-06-12 21:56:55 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Capnp
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This exception gets thrown when a Cap'n Proto object could not be deserialized correctly.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DeserializationException : Exception
|
|
|
|
|
{
|
2019-07-12 21:48:01 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constructs an instance
|
|
|
|
|
/// </summary>
|
2019-06-12 21:56:55 +02:00
|
|
|
|
public DeserializationException(string message) : base(message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-12 21:48:01 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constructs an instance with message and inner exception
|
|
|
|
|
/// </summary>
|
2019-06-12 21:56:55 +02:00
|
|
|
|
public DeserializationException(string message, Exception innerException):
|
|
|
|
|
base(message, innerException)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-01-11 17:56:12 +01:00
|
|
|
|
}
|