Public declaration syntax from forge-go/mcp/error.go Original source SHA-256: be6e00003b1b970b5caf133ea185e266f8fefb67b997971e5f5c35ded2e3dd8c Function bodies and constant values are omitted. This is not the complete implementation. Source line 17 type ErrKind string const ( // ErrKindConnection indicates a connection establishment error. ErrKindConnection ErrKind; Source line 43 type McpError struct Source line 58 func (e *McpError) Error() string Source line 66 func (e *McpError) Unwrap() error Source line 71 func (e *McpError) Is(target error) bool Source line 101 func NewConnectionError(target, message string, cause error) *McpError Source line 111 func NewTransportError(operation, message string, cause error) *McpError Source line 121 func NewProtocolError(method, message string) *McpError Source line 130 func NewToolNotFoundError(toolName string) *McpError Source line 139 func NewSerializationError(message string, cause error) *McpError Source line 148 func NewAuthError(message string, cause error) *McpError