mirror of
https://github.com/Cardidi/ca2d-unity-toolkit.git
synced 2025-12-20 09:16:03 +08:00
feat: Add XML documentation to some methods and classes. remove: Cleanup BootUnit for rewriting.
25 lines
731 B
C#
25 lines
731 B
C#
using System;
|
|
|
|
namespace Ca2d.Toolkit
|
|
{
|
|
public class LoseRequirementException : Exception
|
|
{
|
|
public Type RequiredType { get; }
|
|
|
|
public LoseRequirementException(Type type) : base($"Required type {type?.FullName} was lost when resolving.")
|
|
{
|
|
RequiredType = type;
|
|
}
|
|
|
|
public LoseRequirementException(Object obj) : base($"Required type {obj?.GetType().FullName} was lost when resolving.")
|
|
{
|
|
RequiredType = obj?.GetType();
|
|
}
|
|
|
|
|
|
public LoseRequirementException(ValueType obj) : base($"Required type {obj.GetType().FullName} was lost when resolving.")
|
|
{
|
|
RequiredType = obj.GetType();
|
|
}
|
|
}
|
|
} |