Exception: Gem::FilePermissionError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubygems/exceptions.rb

Overview

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

Instance Attribute Summary collapse

Attributes inherited from Exception

#source_exception

Instance Method Summary collapse

Methods included from Deprecate

deprecate, deprecate_command, skip, skip=, skip_during

Constructor Details

#initialize(directory) ⇒ FilePermissionError


81
82
83
84
85
# File 'lib/rubygems/exceptions.rb', line 81

def initialize(directory)
  @directory = directory

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

Instance Attribute Details

#directoryObject (readonly)

Returns the value of attribute directory


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

def directory
  @directory
end