Scoop API

scoop:scoop.http.client:0.1.0

HttpAuthenticationException

class HttpAuthenticationException

source · line 38
public
public class HttpAuthenticationException public constructor(
    /**
     * The authentication failure category.
     */
    public val reason: HttpAuthenticationFailure,
    /**
     * The request URL whose authentication failed.
     */
    public val url: Url,
    /**
     * The peer response head associated with failure.
     */
    public val head: HttpResponseHead? = None,
    /**
     * The underlying failure, when present.
     */
    public val cause: Throwable? = None
) : Exception(Some(authenticationFailureText(reason)))

Authentication failed, retaining its reason, URL, response head, and optional underlying cause.

property url

source · line 46
public
public val url: Url

get: public read-only

The request URL whose authentication failed.

property cause

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

get: public read-only

The underlying failure, when present.

constructor constructor

source · line 38
public
constructor(public val reason: HttpAuthenticationFailure, public val url: Url, public val head: HttpResponseHead? = None, public val cause: Throwable? = None)