AccessDeniedException

class AccessDeniedException(val file: File, val other: File? = null, val reason: String? = null) : FileSystemException(source)

An exception class which is used when we have not enough access for some operation.

Since Kotlin

1.0

Constructors

Link copied to clipboard
constructor(file: File, other: File? = null, reason: String? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Since Kotlin 1.0
Link copied to clipboard
val file: File

the file on which the failed operation was performed.

Since Kotlin 1.0
Link copied to clipboard
open val message: String?
Since Kotlin 1.0
Link copied to clipboard
val other: File? = null

the second file involved in the operation, if any (for example, the target of a copy or move)

Since Kotlin 1.0
Link copied to clipboard
val reason: String? = null

the description of the error

Since Kotlin 1.0
Link copied to clipboard

Returns an array of stack trace elements representing the stack trace pertaining to this throwable.

Since Kotlin 1.0
Link copied to clipboard

Returns a list of all exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.4

Returns a list of all exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.4

Returns a list of all exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.4

Returns a list of all exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.4

Returns a list of all exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.8

Returns a list of all exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.8

Functions

Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard
expect fun Throwable.addSuppressed(exception: Throwable)

When supported by the platform, adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.4
actual fun Throwable.addSuppressed(exception: Throwable)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.4
actual fun Throwable.addSuppressed(exception: Throwable)

When supported by the platform, adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.1
actual fun Throwable.addSuppressed(exception: Throwable)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.4
actual fun Throwable.addSuppressed(exception: Throwable)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.8
actual fun Throwable.addSuppressed(exception: Throwable)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard

Returns a list of stack trace addresses representing the stack trace pertaining to this throwable.

Since Kotlin 1.3
Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard
open fun printStackTrace()
Since Kotlin 1.0
Link copied to clipboard

Prints the detailed description of this throwable to the standard output or standard error output.

Since Kotlin 1.4

Prints the detailed description of this throwable to console error output.

Since Kotlin 1.4
actual inline fun Throwable.printStackTrace()

Prints the detailed description of this throwable to the standard error output.

Since Kotlin 1.0

Prints the detailed description of this throwable to the specified stream.

Since Kotlin 1.0

Prints the detailed description of this throwable to the specified writer.

Since Kotlin 1.0
actual inline fun Throwable.printStackTrace()

Prints the detailed description of this throwable to the standard error output.

Since Kotlin 1.4

Prints the detailed description of this throwable to console error output.

Since Kotlin 1.8

Prints the detailed description of this throwable to console error output.

Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard

Returns the detailed description of this throwable with its stack trace.

Since Kotlin 1.4

Returns the detailed description of this throwable with its stack trace.

Since Kotlin 1.4

Returns the detailed description of this throwable with its stack trace.

Since Kotlin 1.4

Returns the detailed description of this throwable with its stack trace.

Since Kotlin 1.4

Returns the detailed description of this throwable with its stack trace.

Since Kotlin 1.8

Returns the detailed description of this throwable with its stack trace.

Since Kotlin 1.8