init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace RPGCoreCommon.Helpers.Exceptions
|
||||
{
|
||||
public class MemberNotFoundException : Exception
|
||||
{
|
||||
public readonly string path;
|
||||
public readonly Type objType;
|
||||
|
||||
public MemberNotFoundException(string path, Type objType)
|
||||
: base($"Property '{path}' not found in '{objType}'")
|
||||
{
|
||||
this.path = path;
|
||||
this.objType = objType;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 418add21a24b4cee9309453d1ada1530
|
||||
timeCreated: 1757322594
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace RPGCoreCommon.Helpers.Exceptions
|
||||
{
|
||||
public class MemberValueWrongTypeException : Exception
|
||||
{
|
||||
public readonly string path;
|
||||
public readonly Type objType;
|
||||
public readonly Type expectedType;
|
||||
public readonly Type wrongType;
|
||||
|
||||
public MemberValueWrongTypeException(string path, Type objType, Type expectedType, Type wrongType)
|
||||
: base($"Property '{path}' in {objType} is of type '{wrongType}', expected type '{expectedType}'")
|
||||
{
|
||||
this.path = path;
|
||||
this.objType = objType;
|
||||
this.expectedType = expectedType;
|
||||
this.wrongType = wrongType;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7594d527fc654804a2c564b71fe756bd
|
||||
timeCreated: 1757322677
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace RPGCoreCommon.Helpers.Exceptions
|
||||
{
|
||||
public class NotEnoughElementsForRandomPickException : Exception
|
||||
{
|
||||
public NotEnoughElementsForRandomPickException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25fedc34477644f8b9df4ddcf4c0b701
|
||||
timeCreated: 1756991204
|
||||
Reference in New Issue
Block a user