class UrlParseException
source · line 52public
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))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
A format failure with its component, optional original UTF-8 byte offset, detail, and optional IDNA cause.
property component
source · line 56public
public val component: UrlComponent
get: public read-only
The component whose syntax or value is invalid.
property cause
source · line 69public
public val cause: Throwable? = None
get: public read-only
An underlying validation failure, such as an IDNA error, when available.
property detail
source · line 65public
public val detail: String
get: public read-only
A human-readable explanation of the invalid component.
property offset
source · line 61public
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.
constructor constructor
source · line 52public
constructor(public val component: UrlComponent, public val offset: Long?, public val detail: String, public val cause: Throwable? = None)
parameter cause
source · line 69public
public val cause: Throwable? = None
parameter offset
source · line 61public
public val offset: Long?
parameter component
source · line 56public
public val component: UrlComponent
parameter detail
source · line 65public
public val detail: String