Sha256: d3da863e3ae3b3553b01d8bd6d9d4490774bb9c2837d057e936d5ad6c8c9776b

Contents?: true

Size: 346 Bytes

Versions: 5

Compression:

Stored size: 346 Bytes

Contents

module MasterView

  # Raised when an invalid path is encountered.
  #
  # Used by both directive loading and template IO processing.
  #
  class InvalidPathError < RuntimeError

    # the file system path
    def path
      @path || nil
    end

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

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masterview-0.3.2 lib/masterview/exceptions.rb
masterview-0.3.0 lib/masterview/exceptions.rb
masterview-0.3.1 lib/masterview/exceptions.rb
masterview-0.3.3 lib/masterview/exceptions.rb
masterview-0.3.4 lib/masterview/exceptions.rb