コード例 #1
0
 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}")
 {
 }
コード例 #2
0
 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)}]")
 {
 }