Exception: OllamaAgent::PermissionConflictError

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

Overview

Legacy Runtime::Permissions/Runtime::Policies disagree with kernel ownership gates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(legacy_allowed:, kernel_allowed:, message: nil) ⇒ PermissionConflictError

Returns a new instance of PermissionConflictError.



24
25
26
27
28
# File 'lib/ollama_agent/errors.rb', line 24

def initialize(legacy_allowed:, kernel_allowed:, message: nil)
  @legacy_allowed = legacy_allowed
  @kernel_allowed = kernel_allowed
  super(message || "permission conflict: legacy=#{legacy_allowed} kernel=#{kernel_allowed}")
end

Instance Attribute Details

#kernel_allowedObject (readonly)

Returns the value of attribute kernel_allowed.



22
23
24
# File 'lib/ollama_agent/errors.rb', line 22

def kernel_allowed
  @kernel_allowed
end

#legacy_allowedObject (readonly)

Returns the value of attribute legacy_allowed.



22
23
24
# File 'lib/ollama_agent/errors.rb', line 22

def legacy_allowed
  @legacy_allowed
end