123456789_123456789_123456789_123456789_123456789_

Exception: Gem::FilePermissionError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Exception, 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

Instance Attribute Summary

Constructor Details

.new(directory) ⇒ FilePermissionError

[ GitHub ]

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

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 67

attr_reader :directory