pub enum QueryError {
Show 22 variants
EmptyName,
InvalidManualSection,
TldrManualSection {
section: String,
},
InvalidSource,
ConflictingSourceSelectors,
EmptyMarkdownPath,
UnsupportedInputFormat {
path: String,
},
EmptySelection,
TooManySelections {
maximum: usize,
},
EmptySelector,
InvalidEntryKinds,
EmptyEntry,
InvalidViewSelector {
field: &'static str,
error: ScopeTextError,
},
InvalidSearch(SearchError),
Markdown {
path: String,
detail: String,
},
EmptyMarkdown {
label: String,
},
Registry {
detail: String,
},
Manual(ManualLoadError),
ManualWithTldr {
error: ManualLoadError,
topic: String,
},
TldrNotFound {
topic: String,
},
Tldr {
topic: String,
detail: String,
},
NoReadableContent {
name: String,
},
}Expand description
A query cannot produce either authoritative manual content or a quick reference.
Variants§
EmptyName
A document selector was empty after trimming.
InvalidManualSection
A native manual category was empty or malformed.
TldrManualSection
A tldr command query was qualified by a non-command manual section.
InvalidSource
An explicit Markdown source name was empty.
ConflictingSourceSelectors
Markdown-source and native-manual selectors were combined.
EmptyMarkdownPath
A direct Markdown input path was empty.
UnsupportedInputFormat
Automatic format inference did not recognize a direct input.
EmptySelection
Excerpt projection was requested without selectors.
TooManySelections
Excerpt projection exceeded the closed selector-count bound.
EmptySelector
An excerpt selector was empty.
InvalidEntryKinds
A role-filtered outline contained no kinds or exceeded the closed kind family.
EmptyEntry
An explanation entry name was empty.
InvalidViewSelector
A node or semantic-entry selector violated the bounded request contract.
Fields
error: ScopeTextErrorPrecise bound or character violation.
InvalidSearch(SearchError)
Search configuration failed validation.
Markdown
Markdown input could not be read or parsed.
EmptyMarkdown
Markdown parsing produced neither document nor tldr content.
Registry
Registered-document discovery failed.
Manual(ManualLoadError)
Native manual loading failed.
ManualWithTldr
No full document was found, but an optional tldr entry is available.
Fields
error: ManualLoadErrorNative-manual failure retained as the authoritative lookup error.
TldrNotFound
An explicit tldr query found no quick-reference candidate.
Tldr
An explicit tldr candidate could not be read or parsed.
NoReadableContent
No Markdown, manual, or quick-reference content could be resolved.
Trait Implementations§
Source§impl Clone for QueryError
impl Clone for QueryError
Source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryError
impl Debug for QueryError
Source§impl Display for QueryError
impl Display for QueryError
impl Eq for QueryError
Source§impl Error for QueryError
impl Error for QueryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()