quantum-space-buddies/MirrorWeaver/Weaver/WeaverExceptions.cs

27 lines
899 B
C#
Raw Normal View History

2021-12-28 06:30:22 +00:00
using System;
using System.Runtime.Serialization;
2021-12-28 07:03:26 +00:00
using Mono.Cecil;
2021-12-28 06:30:22 +00:00
namespace Mirror.Weaver
{
[Serializable]
public abstract class WeaverException : Exception
{
public MemberReference MemberReference { get; }
protected WeaverException(string message, MemberReference member) : base(message)
{
MemberReference = member;
}
protected WeaverException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) {}
}
[Serializable]
public class GenerateWriterException : WeaverException
{
public GenerateWriterException(string message, MemberReference member) : base(message, member) {}
protected GenerateWriterException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) {}
}
}