public InvokeArgTypeException(string name, object[] args, Type[] argTypes, Type[] expectedArgTypes, string extraMessage = "") : base($"Invokation of '{name}({PrettyPrinter.PrintObjectArray(args)})' failed. The expected arg types are [{PrettyPrinter.PrintTypeArray(expectedArgTypes)}] but [{PrettyPrinter.PrintTypeArray(argTypes)}] was provided. {extraMessage}") { }
public InvokeArgNumberException(string name, object[] args, Type[] expectedArgTypes) : base($"Invokation of '{name}'){PrettyPrinter.PrintObjectArray(args)}) failed. {args.Length} args were provided but {expectedArgTypes.Length} args were expected. The expected types are: [{PrettyPrinter.PrintTypeArray(expectedArgTypes)}]") { }