defaultNonJsonRefusal function
The refusal for an atom without its own NonJsonArgumentPolicy.
Implementation
ArgumentError defaultNonJsonRefusal(
String atomKey,
String verb,
List<NonJsonArgument> found,
) {
final first = found.first;
return ArgumentError(
'$atomKey.$verb: argument ${first.where} is ${first.kind}, which JSON '
'cannot carry',
);
}