P- the peripheral type that generates the error.
public interface AsyncErrorHandler<P extends Peripheral<? super P>>
AsyncErrorHandlerinterface defines methods for getting notified of errors of asynchronous I/O operations. Note though that contrarily to how classes implementing sub-interfaces of
PeripheralEventListenerhandle events handling of I/O errors reported through this interface is not subject to the same time-sensitivity constrains.
void failed(java.lang.Throwable exception, P source)
exception- the exception to indicate why the I/O operation failed.
Peripheralinstance that generated the error.
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.