Scoop API

scoop:scoop.url:0.1.0

UrlParseException

class UrlParseException

source · line 52
public
public class UrlParseException public constructor(
    /**
     * The component whose syntax or value is invalid.
     */
    public val component: UrlComponent,
    /**
     * The zero-based original UTF-8 byte position when available; None when the failure has no
     * original input position.
     */
    public val offset: Long?,
    /**
     * A human-readable explanation of the invalid component.
     */
    public val detail: String,
    /**
     * An underlying validation failure, such as an IDNA error, when available.
     */
    public val cause: Throwable? = None
) : Exception(Some(detail))

A format failure with its component, optional original UTF-8 byte offset, detail, and optional IDNA cause.

property component

source · line 56
public
public val component: UrlComponent

get: public read-only

The component whose syntax or value is invalid.

property cause

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

get: public read-only

An underlying validation failure, such as an IDNA error, when available.

property detail

source · line 65
public
public val detail: String

get: public read-only

A human-readable explanation of the invalid component.

property offset

source · line 61
public
public val offset: Long?

get: public read-only

The zero-based original UTF-8 byte position when available; None when the failure has no original input position.