org.jruby.util.io
Class PermissionDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.FileNotFoundException
org.jruby.util.io.PermissionDeniedException
- All Implemented Interfaces:
- java.io.Serializable
public class PermissionDeniedException
- extends java.io.FileNotFoundException
Signals that an attempt to open the file denoted by a specified pathname
has failed by 'Permission Denied'.
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PermissionDeniedException
public PermissionDeniedException()
- Constructs a PermissionDeniedException with null as its error detail
message.
PermissionDeniedException
public PermissionDeniedException(java.lang.String msg)
- Constructs a PermissionDeniedException with the specified detail
message. The string msg can be retrieved later by the
Throwable.getMessage()
method of class
java.lang.Throwable.
- Parameters:
msg
- the detail message.
Copyright © 2002-2009 JRuby Team. All Rights Reserved.