public class AccessDeniedException extends FileSystemException
访问控制器或安全管理员在访问文件被拒绝时抛出的AccessControlException或SecurityException与此异常无关。
| Constructor and Description |
|---|
AccessDeniedException(String file)
构造这个类的一个实例。
|
AccessDeniedException(String file, String other, String reason)
构造这个类的一个实例。
|
getFile, getMessage, getOtherFile, getReasonaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AccessDeniedException(String file)
file - 如果不知道,则标识文件的字符串或
null
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.