mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-11-04 15:18:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			900 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			900 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Runtime.Serialization;
 | 
						|
using Mono.CecilX;
 | 
						|
 | 
						|
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) {}
 | 
						|
    }
 | 
						|
}
 |