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