PDO exceptions grouping

Hello there, anybody know how to correctly set fingerprint attribute for grouping same exception.

I need to group all exceptions starts with “SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known”.

In documentation is something about {{ default }} parameter, but I don’t know what it means.

Is it correct to set:

$options[‘fingerprint’] = ‘PDO Exception’;, for all exceptions starting with error mentioned above?