Exception: RubyLLM::MCP::Errors::AuthenticationRequiredError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- RubyLLM::MCP::Errors::AuthenticationRequiredError
- Defined in:
- lib/ruby_llm/mcp/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Attributes inherited from BaseError
Instance Method Summary collapse
-
#initialize(message: "Authentication required", code: 401) ⇒ AuthenticationRequiredError
constructor
A new instance of AuthenticationRequiredError.
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: ) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
41 42 43 |
# File 'lib/ruby_llm/mcp/errors.rb', line 41 def code @code end |