class RequestBodyLengthException
source · line 12public
public class RequestBodyLengthException public constructor(
/**
* The declared exact body length.
*/
public val expectedLength: Long,
/**
* Bytes accepted before the mismatch.
*/
public val transferredBytes: Long,
/**
* The excess write size rejected before transfer, or zero for an early end.
*/
public val rejectedBytes: Long = 0L
) : Exception(Some("request body does not match its declared length"))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
A producer ended before, or attempted to write beyond, its declared body length.
property rejectedBytes
source · line 24public
public val rejectedBytes: Long = 0L
get: public read-only
The excess write size rejected before transfer, or zero for an early end.
property transferredBytes
source · line 20public
public val transferredBytes: Long
get: public read-only
Bytes accepted before the mismatch.
property expectedLength
source · line 16public
public val expectedLength: Long
get: public read-only
The declared exact body length.
constructor constructor
source · line 12public
constructor(public val expectedLength: Long, public val transferredBytes: Long, public val rejectedBytes: Long = 0L)
parameter rejectedBytes
source · line 24public
public val rejectedBytes: Long = 0L
parameter transferredBytes
source · line 20public
public val transferredBytes: Long
parameter expectedLength
source · line 16public
public val expectedLength: Long