Scoop API

scoop:scoop.http:0.1.0

HttpFieldParseException

class HttpFieldParseException

source · line 11
public
public class HttpFieldParseException public constructor(
    /**
     * The HTTP field whose interpretation failed.
     */
    public val field: String,
        /**
         * The zero-based byte offset in the field input.
         */
        public val byteOffset: Long,
        /**
         * The parse or negotiation failure explanation.
         */
        public val detail: String,
    /**
     * The underlying failure when available.
     */
    public val cause: Throwable? = None
) : Exception(Some(field + " at byte " + byteOffset.toString() + ": " + detail))

A structured-field syntax or interpretation error, retaining the field name and zero-based source byte offset.

property cause

source · line 27
public
public val cause: Throwable? = None

get: public read-only

The underlying failure when available.

property detail

source · line 23
public
public val detail: String

get: public read-only

The parse or negotiation failure explanation.

property byteOffset

source · line 19
public
public val byteOffset: Long

get: public read-only

The zero-based byte offset in the field input.

property field

source · line 15
public
public val field: String

get: public read-only

The HTTP field whose interpretation failed.