class ResourceUseException
source · line 29public
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"))
- Supertype
Exception - Inherited
fun printStackTrace(): Unit· Throwable - Inherited
val message: Option<String>· Exception
Preserves both failures when a resource body and its cleanup throw.
property primaryFailure
source · line 33public
public val primaryFailure: Throwable
get: public read-only
The exception thrown by the resource body.
property cleanupFailure
source · line 37public
public val cleanupFailure: Throwable
get: public read-only
The exception thrown while disposing the resource after the body failed.
constructor constructor
source · line 29public
constructor(public val primaryFailure: Throwable, public val cleanupFailure: Throwable)
parameter cleanupFailure
source · line 37public
public val cleanupFailure: Throwable
parameter primaryFailure
source · line 33public
public val primaryFailure: Throwable