Exception: OllamaChat::InvalidPathError

Inherits:
OllamaChatError show all
Defined in:
lib/ollama_chat.rb

Overview

Error raised when a path is outside the allowed whitelist.

The error carries the offending #path as an attribute so that callers can log or display the problematic location.

Instance Attribute Summary collapse

Instance Attribute Details

#pathString

Returns The path that caused the error.

Returns:

  • (String)

    The path that caused the error.



26
27
28
# File 'lib/ollama_chat.rb', line 26

def path
  @path
end