MethodNotFoundException.cs 520 B

12345678910111213141516
  1. namespace Island.StandardLib.Reflection.Exception
  2. {
  3. public class MethodNotFoundException : System.Exception
  4. {
  5. public string ClassName { get; private set; }
  6. public string MemberName { get; private set; }
  7. public MethodNotFoundException(string className, string methodName)
  8. {
  9. ClassName = className;
  10. MemberName = methodName;
  11. }
  12. public override string Message => $"Dynamic type {ClassName} does not have method names {MemberName}.";
  13. }
  14. }