class CharsetException
source · line 51public
public class CharsetException public constructor(
/**
* The conversion operation that failed.
*/
public val operation: String,
/**
* The source encoding name used for the operation.
*/
public val source: String,
/**
* The destination encoding name used for the operation.
*/
public val destination: String,
/**
* The structured category of the conversion failure.
*/
public val kind: CharsetFailureKind,
/**
* The input byte offset associated with the failure, when available.
*/
public val offset: Long?,
/**
* The native backend error code, when available.
*/
public val backendCode: Int?,
/**
* A human-readable explanation of the conversion failure.
*/
public val detail: String
) : Exception(Some(operation + ": " + detail))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
A conversion failure carrying the operation, source and destination encodings, failure kind, and available byte-offset/backend details.
property source
source · line 59public
public val source: String
get: public read-only
The source encoding name used for the operation.
property destination
source · line 63public
public val destination: String
get: public read-only
The destination encoding name used for the operation.
property detail
source · line 79public
public val detail: String
get: public read-only
A human-readable explanation of the conversion failure.
property kind
source · line 67public
public val kind: CharsetFailureKind
get: public read-only
The structured category of the conversion failure.
property operation
source · line 55public
public val operation: String
get: public read-only
The conversion operation that failed.
property offset
source · line 71public
public val offset: Long?
get: public read-only
The input byte offset associated with the failure, when available.
constructor constructor
source · line 51public
constructor(public val operation: String, public val source: String, public val destination: String, public val kind: CharsetFailureKind, public val offset: Long?, public val backendCode: Int?, public val detail: String)
parameter source
source · line 59public
public val source: String
parameter offset
source · line 71public
public val offset: Long?
parameter operation
source · line 55public
public val operation: String
parameter destination
source · line 63public
public val destination: String
parameter backendCode
source · line 75public
public val backendCode: Int?
parameter detail
source · line 79public
public val detail: String
parameter kind
source · line 67public
public val kind: CharsetFailureKind
property backendCode
source · line 75public
public val backendCode: Int?
get: public read-only
The native backend error code, when available.