Exception: Woods::MCP::BootstrapError
- Defined in:
- lib/woods/mcp/errors.rb
Overview
Base class for all bootstrap-time failures in the MCP server.
Inherits directly from Error — a sibling of ConfigurationError, not a child. Artifact/runtime state errors grouped here do not describe declared-configuration problems, so grouping under ConfigurationError would mislead host apps that rescue it.
Each subclass carries a details hash with structured context for operator messages. The exe/woods-mcp top-level rescue formats this into a one-line hint.
Direct Known Subclasses
ConfigMismatch, DimensionMismatch, MissingArtifact, MissingCredential, UnsupportedArtifact
Instance Attribute Summary collapse
-
#details ⇒ Hash
readonly
Structured context for operator diagnostics.
Instance Method Summary collapse
-
#initialize(message = nil, details: {}) ⇒ BootstrapError
constructor
A new instance of BootstrapError.
Constructor Details
#initialize(message = nil, details: {}) ⇒ BootstrapError
Returns a new instance of BootstrapError.
28 29 30 31 |
# File 'lib/woods/mcp/errors.rb', line 28 def initialize( = nil, details: {}) super() @details = details end |
Instance Attribute Details
#details ⇒ Hash (readonly)
Returns Structured context for operator diagnostics.
24 25 26 |
# File 'lib/woods/mcp/errors.rb', line 24 def details @details end |