toString method
The shipped rendering, plus canon's name(s) when there are any.
⛔ A superset, deliberately. The prefix
'ZenohException: <message> (code: <rc>)' is unchanged, so every
message assertion written against the old form still holds.
Implementation
@override
String toString() {
final names = codeNames;
final base = 'ZenohException: $message (code: $returnCode)';
return names.isEmpty ? base : '$base [${names.join(', ')}]';
}