Exception: Nanoc::Extra::FilesystemTools::MaxSymlinkDepthExceededError Private

Inherits:
Nanoc::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

- (MaxSymlinkDepthExceededError) initialize(filename)

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



21
22
23
24
# File 'lib/nanoc/extra/filesystem_tools.rb', line 21

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

- (String) filename (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



17
18
19
# File 'lib/nanoc/extra/filesystem_tools.rb', line 17

def filename
  @filename
end