Skip to content

We have to define some specified IO exception type. #472

@iseki0

Description

@iseki0

In Java, we have the following IOExceptions that relate with file system:

  • java.io.FileNotFoundException
  • java.nio.file.AccessDeniedException
  • java.nio.file.DirectoryNotEmptyException
  • java.nio.file.FileAlreadyExistsException
  • java.nio.file.NoSuchFileException
  • java.nio.file.NotDirectoryException
  • java.nio.file.NotLinkException

Although I curious why wethey leave a NotDirectoryException alone, but at least we have some detailed exception can be used to detect what's happened during runtime. And appearantly, the most of OSes can implement it.

So, maybe we can have a discuss of what kinds of detailed FileSystem I/O exceptions we need.

What do you think of? @fzhinkin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions