Scoop API

scoop:scoop.http:0.1.0

HttpException

class HttpException

source · line 71
public
public class HttpException public constructor(
    /**
     * The operation that failed.
     */
    public val operation: String,
    /**
     * The affected protocol family.
     */
    public val protocol: HttpProtocol,
    /**
     * Whether the failure affects the operation, one stream, or the connection.
     */
    public val scope: HttpFailureScope,
    /**
     * The affected stream ID, or zero when no stream is associated.
     */
    public val streamId: Int,
    /**
     * The protocol backend reporting the failure.
     */
    public val backend: String,
    /**
     * The backend-specific numeric error code.
     */
    public val code: Int,
    /**
     * The failure explanation.
     */
    public val detail: String,
    /**
     * Whether input ended before required protocol bytes arrived.
     */
    public val isUnexpectedEof: Boolean = false
) : Exception(Some(operation + ": " + detail))

A protocol failure carrying operation, backend code, affected scope, stream identity, and unexpected-EOF information.

property code

source · line 95
public
public val code: Int

get: public read-only

The backend-specific numeric error code.

property operation

source · line 75
public
public val operation: String

get: public read-only

The operation that failed.

constructor constructor

source · line 71
public
constructor(public val operation: String, public val protocol: HttpProtocol, public val scope: HttpFailureScope, public val streamId: Int, public val backend: String, public val code: Int, public val detail: String, public val isUnexpectedEof: Boolean = false)

property streamId

source · line 87
public
public val streamId: Int

get: public read-only

The affected stream ID, or zero when no stream is associated.

property isUnexpectedEof

source · line 103
public
public val isUnexpectedEof: Boolean = false

get: public read-only

Whether input ended before required protocol bytes arrived.

property scope

source · line 83
public
public val scope: HttpFailureScope

get: public read-only

Whether the failure affects the operation, one stream, or the connection.

property backend

source · line 91
public
public val backend: String

get: public read-only

The protocol backend reporting the failure.

property detail

source · line 99
public
public val detail: String

get: public read-only

The failure explanation.