public class PermissionDeniedException
extends java.io.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(java.lang.String msg)
Constructs a PermissionDeniedException with the specified detail
message.
|
public PermissionDeniedException()
public PermissionDeniedException(java.lang.String msg)
Throwable.getMessage()
method of class
java.lang.Throwable.msg
- the detail message.Copyright © 2002-2009 JRuby Team. All Rights Reserved.