Scoop API

scoop:scoop.charset:0.1.0

CharsetException

class CharsetException

source · line 51
public
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))

A conversion failure carrying the operation, source and destination encodings, failure kind, and available byte-offset/backend details.

property source

source · line 59
public
public val source: String

get: public read-only

The source encoding name used for the operation.

property destination

source · line 63
public
public val destination: String

get: public read-only

The destination encoding name used for the operation.

property detail

source · line 79
public
public val detail: String

get: public read-only

A human-readable explanation of the conversion failure.

property operation

source · line 55
public
public val operation: String

get: public read-only

The conversion operation that failed.

property offset

source · line 71
public
public val offset: Long?

get: public read-only

The input byte offset associated with the failure, when available.

constructor constructor

source · line 51
public
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)

property backendCode

source · line 75
public
public val backendCode: Int?

get: public read-only

The native backend error code, when available.