Search in sources :

Example 1 with ConnectionCancelled

use of com.webpieces.http2engine.api.error.ConnectionCancelled in project webpieces by deanhiller.

the class ResponseListener method failure.

@Override
public void failure(Throwable e) {
    ConnectionCancelled connCancelled = new ConnectionFailure(new ConnectionException(CancelReasonCode.BUG, logId, 0, "Failure from connection", e));
    responseListener.cancel(new ShutdownStream(0, connCancelled));
}
Also used : ShutdownStream(com.webpieces.http2engine.api.error.ShutdownStream) ConnectionFailure(com.webpieces.http2engine.api.error.ConnectionFailure) ConnectionCancelled(com.webpieces.http2engine.api.error.ConnectionCancelled) ConnectionException(com.webpieces.http2.api.dto.error.ConnectionException)

Aggregations

ConnectionException (com.webpieces.http2.api.dto.error.ConnectionException)1 ConnectionCancelled (com.webpieces.http2engine.api.error.ConnectionCancelled)1 ConnectionFailure (com.webpieces.http2engine.api.error.ConnectionFailure)1 ShutdownStream (com.webpieces.http2engine.api.error.ShutdownStream)1