Recording Errors or Exceptions Thrown

This is the description off the website, "Mobile App & Desktop software statistics reports

Using Matomo (Piwik) to track your app usage would give interesting statistics usage such as:

number of active users (per day, week, month, …) of my mobile or desktop app,
how long users spend in the app,
track which icons, buttons are clicked (or any other custom event),
record device info, operating system,
reports on any Custom Variables you that are relevant to your app (see examples below),
how often is the app opened? When and how long is the app opened?
number of new users, active users, total users,
record errors or exception thrown"

Now my question is would someone be so kind to direct me to where I can find documentation on how to “record errors or exceptions thrown” on my webpage? Would this be a custom tracking type instance?