Example usage for io.netty.handler.codec.http2 Http2Exception streamError

List of usage examples for io.netty.handler.codec.http2 Http2Exception streamError

Introduction

In this page you can find the example usage for io.netty.handler.codec.http2 Http2Exception streamError.

Prototype

public static Http2Exception streamError(int id, Http2Error error, String fmt, Object... args) 

Source Link

Document

Use if an error which can be isolated to a single stream has occurred.

Usage

From source file:io.grpc.netty.NettyServerHandler.java

License:Apache License

private Http2Exception newStreamException(int streamId, Throwable cause) {
    return Http2Exception.streamError(streamId, Http2Error.INTERNAL_ERROR, cause,
            Strings.nullToEmpty(cause.getMessage()));
}