Scoop API

scoop:scoop.core:0.1.0

ResourceUseException

class ResourceUseException

source · line 29
public
public class ResourceUseException public constructor(
    /**
     * The exception thrown by the resource body.
     */
    public val primaryFailure: Throwable,
    /**
     * The exception thrown while disposing the resource after the body failed.
     */
    public val cleanupFailure: Throwable
) : Exception(Some("resource body and cleanup both failed"))

Preserves both failures when a resource body and its cleanup throw.

property primaryFailure

source · line 33
public
public val primaryFailure: Throwable

get: public read-only

The exception thrown by the resource body.

property cleanupFailure

source · line 37
public
public val cleanupFailure: Throwable

get: public read-only

The exception thrown while disposing the resource after the body failed.