FileAlreadyExistsException

class FileAlreadyExistsException : FileSystemException (source)

Platform and version requirements: JVM

An exception class which is used when some file to create or copy to already exists.

Constructors

<init>

FileAlreadyExistsException(
    file: File,
    other: File? = null,
    reason: String? = null)

An exception class which is used when some file to create or copy to already exists.

Inherited Properties

file

val file: File

the file on which the failed operation was performed.

other

val other: File?

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

reason

val reason: String?

the description of the error