/** * Forwards exception to the given exception handler. No thread switch * is done, so the handler is notified on the thread where the exception * was thrown. * <p> * Giving a custom exception handler will disable the default handler, * so {@link PV#lastException() } and {@link PV#lastWriteException() } * is no longer set and no notification * is done. * * @param exceptionHandler an exception handler * @return this */ public PVConfiguration<R, W> routeExceptionsTo(ExceptionHandler exceptionHandler) { pvReaderConfiguration.routeExceptionsTo(exceptionHandler); pvWriterConfiguration.routeExceptionsTo(exceptionHandler); return this; }