P - the device type that generates the error.
public interface AsyncErrorHandler<P extends Device<? super P>>
AsyncErrorHandler interface defines methods for getting notified of errors of
asynchronous I/O operations.
Note though that contrarily to how classes implementing sub-interfaces of
DeviceEventListener handle 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.
source - the
Device instance that generated the error.
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.