10 lines
		
	
	
		
			341 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			341 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
 | 
						|
namespace Engine.Core.Exceptions;
 | 
						|
 | 
						|
public class AssignFailedException(string? message) : Exception(message)
 | 
						|
{
 | 
						|
    public static AssignFailedException From<T, T2>(T to, T2? value)
 | 
						|
        => new($"Assign operation has failed on T: {to?.GetType().FullName ?? "\"null\""}, value: {value?.GetType().ToString() ?? "\"null\""}");
 | 
						|
}
 |