Exception: Fox::InsufficientPrivledges

Inherits:
FoxError
  • Object
show all
Defined in:
lib/fox/error/errors.rb

Instance Method Summary collapse

Methods inherited from FoxError

status_code

Constructor Details

#initialize(path) ⇒ InsufficientPrivledges

Returns a new instance of InsufficientPrivledges.



139
140
141
# File 'lib/fox/error/errors.rb', line 139

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject



143
144
145
146
147
# File 'lib/fox/error/errors.rb', line 143

def to_s
  "You do not have permission to write to '#{@path}'! Please chown the " \
  "path to the current user, chmod the permissions to include the " \
  "user, or choose a different path."
end