MCPcopy Index your code
hub / github.com/antlr/codebuff / handleSubscriberException

Method handleSubscriberException

output/java_guava/1.4.17/EventBus.java:178–190  ·  view source on GitHub ↗

Handles the given exception thrown by a subscriber with the given context.

(Throwable e, SubscriberExceptionContext context)

Source from the content-addressed store, hash-verified

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.

Callers 1

runMethod · 0.45

Calls 4

logMethod · 0.80
handleExceptionMethod · 0.65
checkNotNullMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected