Class: Nanoc::Extra::FilesystemTools::MaxSymlinkDepthExceededError Private

Inherits:
Int::Errors::GenericTrivial show all
Defined in:
lib/nanoc/extra/filesystem_tools.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Error that is raised when too many symlink indirections are encountered.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ MaxSymlinkDepthExceededError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MaxSymlinkDepthExceededError.

Parameters:

  • filename (String)

    The last filename that was attempted to be resolved before giving up



14
15
16
17
# File 'lib/nanoc/extra/filesystem_tools.rb', line 14

def initialize(filename)
  @filename = filename
  super("Too many indirections while resolving symlinks. I gave up after finding out #{filename} was yet another symlink. Sorry!")
end

Instance Attribute Details

#filenameString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The last filename that was attempted to be resolved before giving up.

Returns:

  • (String)

    The last filename that was attempted to be resolved before giving up



10
11
12
# File 'lib/nanoc/extra/filesystem_tools.rb', line 10

def filename
  @filename
end