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