AbstractHttp3Frame#decode(BuffersReader, LongPredicate, Logger)
when a malformed frame is detected. This should cause the caller
to send an error to its peer, and possibly throw an
exception to the higher layer.
| Modifier and Type | Field and Description |
|---|---|
| private final Throwable | |
| private final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | MalformedFrame(long type, long
- error code errorCode, String - internal debug message msg)Creates Connection Error malformed frame |
| public | MalformedFrame(long type, long
- error code errorCode, String - internal debug message msg, Throwable - internal cause for the error, if available
(can be null) cause)Creates Connection Error malformed frame |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | Returns: the cause of the error, if available,null otherwiseReturns the cause of the error, if available, |
| public long | Returns: the HTTP/3 error code that should be reported to the peerReturns the HTTP/3 error code that should be reported to the peer. |
| public String | |
| public long | length()
Implements jdk. Returns the length of this frame. |
| public long | size()
Overrides jdk. Computes the size of this frame. |
| public String | toString()
Overrides jdk. Returns a string representation of the object. |
| cause | back to summary |
|---|---|
| private final Throwable cause | |
| errorCode | back to summary |
|---|---|
| private final long errorCode | |
| msg | back to summary |
|---|---|
| private final String msg | |
| MalformedFrame | back to summary |
|---|---|
| public MalformedFrame(long type, long errorCode, String msg) Creates Connection Error malformed frame
| |
| MalformedFrame | back to summary |
|---|---|
| public MalformedFrame(long type, long errorCode, String msg, Throwable cause) Creates Connection Error malformed frame | |
| getCause | back to summary |
|---|---|
| public Throwable getCause() Returns the cause of the error, if available, API Note This is useful for logging and diagnosis purpose, typically when the error is an internal error.
| |
| getErrorCode | back to summary |
|---|---|
| public long getErrorCode() Returns the HTTP/3 error code that should be reported to the peer.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Returns a message that describe the error.
| |
| length | back to summary |
|---|---|
| public long length() Implements jdk. Doc from jdk. Returns the length of this frame. Implementation Specification this method always returns 0
| |
| size | back to summary |
|---|---|
| public long size() Overrides jdk. Doc from jdk. Computes the size of this frame. This corresponds to the length() of the frame's payload, plus the size needed to encode this length, plus the size needed to encode the frame type. Implementation Specification this method always returns 0
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides jdk. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |