feat!: GetRequiredBehaviour/HierarchyObject methods added for cleaner null handling
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user