Class: Nanoc::DataSources::Filesystem::Tools::MaxSymlinkDepthExceededError Private

Inherits:
Core::TrivialError
  • Object
show all
Defined in:
lib/nanoc/data_sources/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



16
17
18
19
# File 'lib/nanoc/data_sources/filesystem/tools.rb', line 16

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



12
13
14
# File 'lib/nanoc/data_sources/filesystem/tools.rb', line 12

def filename
  @filename
end