Scoop API

scoop:scoop.idna:0.1.0

IdnaException

class IdnaException

source · line 41
public
public class IdnaException public constructor(
    /**
     * The conversion operation that failed.
     */
    public val operation: String,
    /**
     * The input-validation or backend category of the failure.
     */
    public val kind: IdnaFailureKind,
    /**
     * The backend error code when one is available.
     */
    public val code: Int?,
    /**
     * A human-readable explanation of the failure.
     */
    public val detail: String,
    /**
     * The zero-based index of the failing label when known.
     */
    public val labelIndex: Long? = None
) : Exception(Some(operation + ": " + detail))

A domain conversion failure with an operation name and structured failure kind. Optional backend and label information is available when the failing operation can provide it.

property operation

source · line 45
public
public val operation: String

get: public read-only

The conversion operation that failed.

property labelIndex

source · line 61
public
public val labelIndex: Long? = None

get: public read-only

The zero-based index of the failing label when known.

property code

source · line 53
public
public val code: Int?

get: public read-only

The backend error code when one is available.

constructor constructor

source · line 41
public
constructor(public val operation: String, public val kind: IdnaFailureKind, public val code: Int?, public val detail: String, public val labelIndex: Long? = None)

property detail

source · line 57
public
public val detail: String

get: public read-only

A human-readable explanation of the failure.