So for example I have 3 levels of exceptions, minor, regular, critical. In an ideal world I would like to essentially have 3 listeners on the app for these exceptions and if 10 minors occur or 5 regular or 1 critical I stop the application and send a notification to the interested parties. Is this possible or is there a way in which I could develop this behavior?