Exception: JetBlack::InvalidPathError

Inherits:
Error
  • Object
show all
Defined in:
lib/jet_black/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_path, expanded_path) ⇒ InvalidPathError

Returns a new instance of InvalidPathError.



10
11
12
13
14
15
16
17
18
19
# File 'lib/jet_black/errors.rb', line 10

def initialize(raw_path, expanded_path)
  @raw_path = raw_path
  @expanded_path = expanded_path

  super <<~MSG
    Please specify a relative path within the temp dir.
    Raw path: '#{raw_path}'
    Expanded path: '#{expanded_path}'
  MSG
end

Instance Attribute Details

#expanded_pathObject (readonly)

Returns the value of attribute expanded_path.



8
9
10
# File 'lib/jet_black/errors.rb', line 8

def expanded_path
  @expanded_path
end

#raw_pathObject (readonly)

Returns the value of attribute raw_path.



8
9
10
# File 'lib/jet_black/errors.rb', line 8

def raw_path
  @raw_path
end