123456789_123456789_123456789_123456789_123456789_

Exception: Gem::FilePermissionError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Exception, Deprecate, RuntimeError
Instance Chain:
self, Exception, RuntimeError
Inherits: Gem::Exception
Defined in: lib/rubygems/exceptions.rb

Overview

Signals that a file permission error is preventing the user from operating on the given directory.

Class Method Summary

Deprecate - Extended

deprecate

Simple deprecation method that deprecates name by wrapping it up in a dummy method.

skip_during

Temporarily turn off warnings.

Instance Attribute Summary

Constructor Details

.new(directory) ⇒ FilePermissionError

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 80

def initialize(directory)
  @directory = directory

  super "You don't have write permissions for the #{directory} directory."
end

Instance Attribute Details

#directory (readonly)

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 78

attr_reader :directory