class IdnaException
source · line 41public
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))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
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 45public
public val operation: String
get: public read-only
The conversion operation that failed.
property labelIndex
source · line 61public
public val labelIndex: Long? = None
get: public read-only
The zero-based index of the failing label when known.
property code
source · line 53public
public val code: Int?
get: public read-only
The backend error code when one is available.
property kind
source · line 49public
public val kind: IdnaFailureKind
get: public read-only
The input-validation or backend category of the failure.
constructor constructor
source · line 41public
constructor(public val operation: String, public val kind: IdnaFailureKind, public val code: Int?, public val detail: String, public val labelIndex: Long? = None)
parameter operation
source · line 45public
public val operation: String
parameter code
source · line 53public
public val code: Int?
parameter detail
source · line 57public
public val detail: String
parameter labelIndex
source · line 61public
public val labelIndex: Long? = None
parameter kind
source · line 49public
public val kind: IdnaFailureKind
property detail
source · line 57public
public val detail: String
get: public read-only
A human-readable explanation of the failure.