Exception: RubyLLM::MCP::Errors::AuthenticationRequiredError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/ruby_llm/mcp/errors.rb

Instance Attribute Summary collapse

Attributes inherited from BaseError

#message

Instance Method Summary collapse

Constructor Details

#initialize(message: "Authentication required", code: 401) ⇒ AuthenticationRequiredError

Returns a new instance of AuthenticationRequiredError.



43
44
45
46
# File 'lib/ruby_llm/mcp/errors.rb', line 43

def initialize(message: "Authentication required", code: 401)
  @code = code
  super(message: message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



41
42
43
# File 'lib/ruby_llm/mcp/errors.rb', line 41

def code
  @code
end