scoop:scoop.http.client:0.1.0
src/body/errors.scoop
Selected production source · src/body/errors.scoop
1
package scoop.http.client3
/**4
* A one-shot request body was used more than once.5
*/6
public class RequestBodyConsumedException public constructor() :7
Exception(Some("this request body has already been used")) {}9
/**10
* A producer ended before, or attempted to write beyond, its declared body length.11
*/12
public class RequestBodyLengthException public constructor(13
/**14
* The declared exact body length.15
*/16
public val expectedLength: Long,17
/**18
* Bytes accepted before the mismatch.19
*/20
public val transferredBytes: Long,21
/**22
* The excess write size rejected before transfer, or zero for an early end.23
*/24
public val rejectedBytes: Long = 0L25
) : Exception(Some("request body does not match its declared length")) {}27
/**28
* A buffering request-body operation exceeded its explicit byte limit.29
*/30
public class RequestBodyLimitException public constructor(31
/**32
* The explicit buffering maximum.33
*/34
public val maxBytes: Long,35
/**36
* The observed byte count that exceeded the maximum.37
*/38
public val actualBytes: Long) :39
Exception(Some("buffered request body exceeds its byte limit")) {}