Exception: Nanoc::Extra::FilesystemTools::MaxSymlinkDepthExceededError Private
- Inherits:
-
Nanoc::Errors::GenericTrivial
- Object
- StandardError
- Nanoc::Errors::Generic
- Nanoc::Errors::GenericTrivial
- Nanoc::Extra::FilesystemTools::MaxSymlinkDepthExceededError
- 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)
-
- (String) filename
readonly
private
The last filename that was attempted to be resolved before giving up.
Instance Method Summary (collapse)
-
- (MaxSymlinkDepthExceededError) initialize(filename)
constructor
private
A new instance of MaxSymlinkDepthExceededError.
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
18 19 20 21 |
# File 'lib/nanoc/extra/filesystem_tools.rb', line 18 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
14 15 16 |
# File 'lib/nanoc/extra/filesystem_tools.rb', line 14 def filename @filename end |