Handles the given exception thrown by a subscriber with the given context.
(Throwable e, SubscriberExceptionContext context)
| 176 | */ |
| 177 | |
| 178 | void handleSubscriberException(Throwable e, SubscriberExceptionContext context) { |
| 179 | checkNotNull(e); |
| 180 | checkNotNull(context); |
| 181 | try { |
| 182 | exceptionHandler.handleException(e, context); |
| 183 | } catch (Throwable e2) { |
| 184 | // if the handler threw an exception... well, just log it |
| 185 | logger.log( |
| 186 | Level.SEVERE, |
| 187 | String.format(Locale.ROOT, "Exception %s thrown while handling exception: %s", e2, e), |
| 188 | e2); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Registers all subscriber methods on {@code object} to receive events. |
no test coverage detected