Syntriax.Engine/Engine.Core/Exceptions/HierarchyObjectNotFoundException.cs

10 lines
285 B
C#

using System;
namespace Syntriax.Engine.Core.Exceptions;
public class HierarchyObjectNotFoundException(string? message) : Exception(message)
{
public static NotAssignedException FromType<THierarchyObject>()
=> new($"{typeof(THierarchyObject).FullName} was not found");
}