Top Description Fields Constructors Methods
io.netty5.handler.codec.http.headers

public final Class HeaderValidationException

extends IllegalArgumentException
Class Inheritance
Imports
org.jetbrains.annotations.Nullable

Exception thrown when a header fails validation when added to HttpHeaders.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
HeaderValidationException(final String
the reason the header validation failed.
message
)

Header validation failed with the given message.

public
HeaderValidationException(final byte
value of the character
value
,
final String
definition of expected value(s)
expected
)

Validation failed because the given byte value does not satisfy the given expectations.

Method Summary

Modifier and TypeMethod and Description
private static String
message(final byte value, final @Nullable String expected)

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalArgumentException.serialVersionUID.

Constructor Detail

HeaderValidationExceptionback to summary
public HeaderValidationException(final String message)

Header validation failed with the given message.

Parameters
message:String

the reason the header validation failed.

HeaderValidationExceptionback to summary
public HeaderValidationException(final byte value, final String expected)

Validation failed because the given byte value does not satisfy the given expectations.

Parameters
value:byte

value of the character

expected:String

definition of expected value(s)

Method Detail

messageback to summary
private static String message(final byte value, final @Nullable String expected)