MCPcopy Create free account
hub / github.com/PRQL/prql / WithErrorInfo

Interface WithErrorInfo

prqlc/prqlc-parser/src/error.rs:167–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167pub trait WithErrorInfo: Sized {
168 fn push_hint<S: Into<String>>(self, hint: S) -> Self;
169
170 fn with_hints<S: Into<String>, I: IntoIterator<Item = S>>(self, hints: I) -> Self;
171
172 fn with_span(self, span: Option<Span>) -> Self;
173
174 fn with_span_fallback(self, span: Option<Span>) -> Self;
175
176 fn with_code(self, code: &'static str) -> Self;
177
178 fn with_source(self, source: ErrorSource) -> Self;
179}
180
181impl WithErrorInfo for Error {
182 fn push_hint<S: Into<String>>(mut self, hint: S) -> Self {

Callers

nothing calls this directly

Implementers 1

error.rsprqlc/prqlc-parser/src/error.rs

Calls

no outgoing calls

Tested by

no test coverage detected