Home / File/ InvalidChunkTerminationException.java — netty Source File

InvalidChunkTerminationException.java — netty Source File

Architecture documentation for InvalidChunkTerminationException.java, a java file in the netty codebase.

Entity Profile

Relationship Graph

Source Code

/*
 * Copyright 2025 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.handler.codec.http;

import io.netty.handler.codec.CorruptedFrameException;

/**
 * Thrown when HTTP chunks could not be parsed, typically due to incorrect use of CR LF delimiters.
 * <p>
 * <a href="https://datatracker.ietf.org/doc/html/rfc9112#name-chunked-transfer-coding">RFC 9112</a>
 * specifies that chunk bodies must be terminated in a CR LF pair,
 * and that the delimiter must follow the given chunk-size number of octets in chunk-data.
 */
public final class InvalidChunkTerminationException extends CorruptedFrameException {
    private static final long serialVersionUID = 536224937231200736L;

    public InvalidChunkTerminationException() {
        super("Chunk data sections must be terminated by a CR LF octet pair");
    }

    public InvalidChunkTerminationException(String message, Throwable cause) {
        super(message, cause);
    }

    public InvalidChunkTerminationException(String message) {
        super(message);
    }

    public InvalidChunkTerminationException(Throwable cause) {
        super(cause);
    }
}

Subdomains

Frequently Asked Questions

What does InvalidChunkTerminationException.java do?
InvalidChunkTerminationException.java is a source file in the netty codebase, written in java. It belongs to the ProtocolCodecs domain, HTTP subdomain.
Where is InvalidChunkTerminationException.java in the architecture?
InvalidChunkTerminationException.java is located at codec-http/src/main/java/io/netty/handler/codec/http/InvalidChunkTerminationException.java (domain: ProtocolCodecs, subdomain: HTTP, directory: codec-http/src/main/java/io/netty/handler/codec/http).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free