A base exception class for file system exceptions.
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?
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