Exception Monitoring
By default every unhandled exception will be reported automatically to be sure you'll be alerted for unpredictable errors in real time.
Inspector allows you to report an exception manually if you want be aware of it, but you don't want to block the execution of your code:
1
try {
2
3
// Your code statements here...
4
5
} catch(LogicException $exception) {
6
// Report an exception intentionally to collect diagnostics data
7
$inspector->reportException($exception);
8
}
Copied!
If something goes wrong in your code you will be alerted in real time in your inbox and the exception will be monitored for all subsequent occurrences.
For more information about access the Inspector instance in your application take al look on this section: Access the Inspector instance

Exception monitoring

When an exception is detected you can read the code inside the stacktrace, and monitor its occurrences frequency for a better investigation:
Exception details
Last modified 29d ago
Copy link