feat: Find & FindRequired for general type search
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
using System;
|
||||
|
||||
namespace Syntriax.Engine.Core.Exceptions;
|
||||
|
||||
public class UniverseObjectNotFoundException(string? message) : Exception(message)
|
||||
{
|
||||
public static NotAssignedException FromType<TUniverseObject>()
|
||||
=> new($"{typeof(TUniverseObject).FullName} was not found");
|
||||
}
|
||||
public class UniverseObjectNotFoundException(string? message) : NotFoundException(message);
|
||||
|
Reference in New Issue
Block a user