class Darkroom::InvalidPathError
Error class used when an asset's path contains one or more invalid characters.
Attributes
index[R]
path[R]
Public Class Methods
new(path, index)
click to toggle source
Creates a new instance.
-
path
- Path of the asset with the invalid character(s). -
index
- Position of the first bad character in the path.
# File lib/darkroom/errors/invalid_path_error.rb, line 16 def initialize(path, index) @path = path @index = index end
Public Instance Methods
to_s()
click to toggle source
Returns a string representation of the error.
# File lib/darkroom/errors/invalid_path_error.rb, line 24 def to_s "Asset path contains one or more invalid characters (#{DISALLOWED_PATH_CHARS}): #{@path}" end