Serializablepublic class AccessDeniedException extends FileSystemException
This exception is not related to the AccessControlException or SecurityException thrown by access controllers or security managers when
access to a file is denied.
| 构造器 | 说明 |
|---|---|
AccessDeniedException(String file) |
Constructs an instance of this class.
|
AccessDeniedException(String file,
String other,
String reason) |
Constructs an instance of this class.
|
public AccessDeniedException(String file)
file - a string identifying the file or null if not knownpublic AccessDeniedException(String file, String other, String reason)
file - a string identifying the file or null if not knownother - a string identifying the other file or null if not knownreason - a reason message with additional information or null