Skip to content

Commit 41936ae

Browse files
committed
Merge branch 'netty5' into 1.0
# Conflicts: # multipart-core/src/main/java/io/netty/contrib/multipart/AbstractDecoder.java
2 parents 77e708a + 0b81dee commit 41936ae

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

multipart-core/src/main/java/io/netty/contrib/multipart/AbstractDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void add(ByteBuf buffer) {
4545
}
4646
if (this.buffer.readableBytes() > undecodedLimit) {
4747
buffer.release();
48-
throw new FormDecoderException("Undecoded data limit exceeded");
48+
throw new UndecodedDataLimitExceededException();
4949
}
5050

5151
if (this.buffer instanceof CompositeByteBuf) {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package io.netty.contrib.multipart;
2+
3+
/**
4+
* Exception when the maximum data buffer size is reached, e.g. when a form field name is too long for the buffer
5+
*/
6+
public class UndecodedDataLimitExceededException extends FormDecoderException {
7+
public UndecodedDataLimitExceededException() {
8+
super("Undecoded data limit exceeded");
9+
}
10+
}

0 commit comments

Comments
 (0)