public class PermissionDeniedException extends FileNotFoundException
This exception might be thrown by the ChannelDescriptor.open(java.lang.String, java.lang.String, org.jruby.util.io.ModeFlags)
when trying to create new file and the specified pathname cannot be written.
Bear in mind that ChannelDescriptor.open(java.lang.String, java.lang.String, org.jruby.util.io.ModeFlags)
throws
not PermissionDeniedException but FileNotFindException as same as Java
manner when trying to read existing but unreadable file.
See org.jruby.RubyFile#fopen and sysopen how we handle that situation.
Constructor and Description |
---|
PermissionDeniedException()
Constructs a PermissionDeniedException with null as its error detail
message.
|
PermissionDeniedException(String msg)
Constructs a PermissionDeniedException with the specified detail
message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PermissionDeniedException()
public PermissionDeniedException(String msg)
Throwable.getMessage()
method of class
java.lang.Throwable.msg
- the detail message.Copyright © 2001-2013 JRuby. All Rights Reserved.