1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty5.handler.codec.http2;
17
18 import io.netty5.util.internal.UnstableApi;
19
20 import static java.util.Objects.requireNonNull;
21
22
23
24
25 @UnstableApi
26 public final class Http2FrameStreamException extends Exception {
27
28 private static final long serialVersionUID = -4407186173493887044L;
29
30 private final Http2Error error;
31 private final Http2FrameStream stream;
32
33 public Http2FrameStreamException(Http2FrameStream stream, Http2Error error, Throwable cause) {
34 super(cause.getMessage(), cause);
35 this.stream = requireNonNull(stream, "stream");
36 this.error = requireNonNull(error, "error");
37 }
38
39 public Http2Error error() {
40 return error;
41 }
42
43 public Http2FrameStream stream() {
44 return stream;
45 }
46 }