How to read exceptions through automation script

We have a requirement to read exceptions and search if a particular string found in the exception using automation script. If so it will trigger email to some team. Is there API to read exceptions using automation script?

Parents Reply Children