Scoop API

scoop:scoop.platform:0.1.0

PlatformException

class PlatformException

source · line 139
public
public class PlatformException public constructor(
    /**
     * The operation that failed.
     */
    public val operation: String,
    /**
     * The portable failure category.
     */
    public val kind: PlatformErrorKind,
    /**
     * The original native error, when available.
     */
    public val nativeError: NativeError? = None,
    /**
     * An optional native-byte path or other operation-specific context.
     */
    public val context: OsString? = None
) : Exception(Some(platformErrorMessage(operation, nativeError, context)))

A platform-operation failure with portable kind, optional native error, and native-byte path or operation context.

constructor constructor

source · line 139
public
constructor(public val operation: String, public val kind: PlatformErrorKind, public val nativeError: NativeError? = None, public val context: OsString? = None)

property context

source · line 155
public
public val context: OsString? = None

get: public read-only

An optional native-byte path or other operation-specific context.

property nativeError

source · line 151
public
public val nativeError: NativeError? = None

get: public read-only

The original native error, when available.

property operation

source · line 143
public
public val operation: String

get: public read-only

The operation that failed.