25 lines
670 B
C#
Raw Normal View History

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
{
/// <summary>
/// Constructs an instance
/// </summary>
2019-06-12 21:56:55 +02:00
public DeserializationException(string message) : base(message)
{
}
/// <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
}