open class FileSystemException : IOException
A base exception class for file system exceptions.
A base exception class for file system exceptions.
FileSystemException( file: File, other: File? = null, reason: String? = null)
the file on which the failed operation was performed.
val file: File
the second file involved in the operation, if any (for example, the target of a copy or move)
val other: File?
the description of the error
val reason: String?
Returns an array of stack trace elements representing the stack trace pertaining to this throwable.
val Throwable.stackTrace: Array<StackTraceElement>
When supported by the platform adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.
fun Throwable.addSuppressed(exception: Throwable)
Prints the stack trace of this throwable to the standard output.
fun Throwable.printStackTrace()
Prints the stack trace of this throwable to the specified writer.
fun Throwable.printStackTrace(writer: PrintWriter)
Prints the stack trace of this throwable to the specified stream.
fun Throwable.printStackTrace(stream: PrintStream)
An exception class which is used when we have not enough access for some operation.
class AccessDeniedException : FileSystemException
An exception class which is used when some file to create or copy to already exists.
class FileAlreadyExistsException : FileSystemException
An exception class which is used when file to copy does not exist.
class NoSuchFileException : FileSystemException
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/-file-system-exception/index.html