Exception: MasterView::InvalidPathError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/masterview/exceptions.rb

Overview

Raised when an invalid path is encountered.

Used by both directive loading and template IO processing.

Instance Method Summary collapse

Constructor Details

#initialize(path, err_msg) ⇒ InvalidPathError

Returns a new instance of InvalidPathError.



14
15
16
17
# File 'lib/masterview/exceptions.rb', line 14

def initialize( path, err_msg)
  super(err_msg)
  @path = path.to_s
end

Instance Method Details

#pathObject

the file system path



10
11
12
# File 'lib/masterview/exceptions.rb', line 10

def path
  @path || nil
end