Exception: MCP::Client::SkillReadRefusedError

Inherits:
SkillError
  • Object
show all
Defined in:
lib/mcp/client/skill_errors.rb

Overview

A Skills call was refused before it was sent, or its completion was discarded because the connection changed. reason is one of :not_advertised, :connection_changed, :latched, :unknown_skill, :dynamic, :not_in_manifest, or :skill_md_unverified; later releases may add reasons, so treat an unknown one as a refusal too. Nothing is latched by a refusal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, reason:, uri: nil, skill_uri: nil) ⇒ SkillReadRefusedError

Returns a new instance of SkillReadRefusedError.



37
38
39
40
41
42
# File 'lib/mcp/client/skill_errors.rb', line 37

def initialize(message, reason:, uri: nil, skill_uri: nil)
  super(message)
  @reason = reason
  @uri = uri
  @skill_uri = skill_uri
end

Instance Attribute Details

#reason ⇒ Object (readonly)

Returns the value of attribute reason.



35
36
37
# File 'lib/mcp/client/skill_errors.rb', line 35

def reason
  @reason
end

#skill_uri ⇒ Object (readonly)

Returns the value of attribute skill_uri.



35
36
37
# File 'lib/mcp/client/skill_errors.rb', line 35

def skill_uri
  @skill_uri
end

#uri ⇒ Object (readonly)

Returns the value of attribute uri.



35
36
37
# File 'lib/mcp/client/skill_errors.rb', line 35

def uri
  @uri
end