Class: Nanoc::DataSources::Filesystem::Tools::MaxSymlinkDepthExceededError Private
- Inherits:
-
Core::TrivialError
- Object
- Core::TrivialError
- Nanoc::DataSources::Filesystem::Tools::MaxSymlinkDepthExceededError
- 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
-
#filename ⇒ String
readonly
private
The last filename that was attempted to be resolved before giving up.
Instance Method Summary collapse
-
#initialize(filename) ⇒ MaxSymlinkDepthExceededError
constructor
private
A new instance of MaxSymlinkDepthExceededError.
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.
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
#filename ⇒ String (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.
12 13 14 |
# File 'lib/nanoc/data_sources/filesystem/tools.rb', line 12 def filename @filename end |