@@ -1578,10 +1578,26 @@ boolean containsIgnoredExceptionForType(final @NotNull Throwable throwable) {
15781578 return this .ignoredExceptionsForType .contains (throwable .getClass ());
15791579 }
15801580
1581+ /**
1582+ * Returns the list of strings/regex patterns that `event.message`, `event.formatted`, and
1583+ * `{event.throwable.class.name}: {event.throwable.message}` are checked against to determine if
1584+ * an event shall be sent to Sentry or ignored.
1585+ *
1586+ * @return the list of strings/regex patterns that `event.message`, `event.formatted`, and
1587+ * `{event.throwable.class.name}: {event.throwable.message}` are checked against to determine
1588+ * if an event shall be sent to Sentry or ignored
1589+ */
15811590 public @ Nullable List <FilterString > getIgnoredErrors () {
15821591 return ignoredErrors ;
15831592 }
15841593
1594+ /**
1595+ * Sets the list of strings/regex patterns that `event.message`, `event.formatted`, and
1596+ * `{event.throwable.class.name}: {event.throwable.message}` are checked against to determine if
1597+ * an event shall be sent to Sentry or ignored.
1598+ *
1599+ * @param ignoredErrors the list of strings/regex patterns
1600+ */
15851601 public void setIgnoredErrors (final @ Nullable List <String > ignoredErrors ) {
15861602 if (ignoredErrors == null ) {
15871603 this .ignoredErrors = null ;
@@ -1597,6 +1613,13 @@ public void setIgnoredErrors(final @Nullable List<String> ignoredErrors) {
15971613 }
15981614 }
15991615
1616+ /**
1617+ * Adds an item to the list of strings/regex patterns that `event.message`, `event.formatted`, and
1618+ * `{event.throwable.class.name}: {event.throwable.message}` are checked against to determine if
1619+ * an event shall be sent to Sentry or ignored.
1620+ *
1621+ * @param pattern the string/regex pattern
1622+ */
16001623 public void addIgnoredError (final @ NotNull String pattern ) {
16011624 if (ignoredErrors == null ) {
16021625 ignoredErrors = new ArrayList <>();
0 commit comments