corda / net.corda.client.jackson / StringToMethodCallParser / validateIsMatchingCtor

validateIsMatchingCtor

fun validateIsMatchingCtor(methodNameHint: String, parameters: List<Pair<String, Type>>, args: String): Unit

Validates that the argument string matches the constructor parameters, i.e. this is a matching constructor for the argument string. Exception is thrown if not a match

Parameters

methodNameHint - A name that will be used in exceptions if thrown; not used for any other purpose.

Exceptions

UnparseableCallException - If no match is found between constructor parameters and passed string.