sharp-chat/SharpChat.Common/Reflection/ObjectConstructorException.cs

17 lines
658 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Reflection {
public class ObjectConstructorException : Exception {
public ObjectConstructorException(string message) : base(message) {
}
}
public class ObjectConstructorObjectNotFoundException : ObjectConstructorException {
public ObjectConstructorObjectNotFoundException(string name) : base($@"Object with name {name} not found.") { }
}
public class ObjectConstructorConstructorNotFoundException : ObjectConstructorException {
public ObjectConstructorConstructorNotFoundException(string name) : base($@"Proper constructor for object {name} not found.") { }
}
}