Exceptions should be specific to the application to help points the exact issue. For these reasons, generic exceptions should not be used and we should instead favor specific exception types.
Non-Compliant Code Examples
classMyClass{publicstaticvoidprocessString(strings){thrownewException("foo");thrownewApplicationException("oh no something got wrong");}}