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

Class Error

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

Source from the content-addressed store, hash-verified

7/// A prqlc error. Used internally, exposed as prqlc::ErrorMessage.
8#[derive(Debug, Clone)]
9pub struct Error {
10 /// Message kind. Currently only Error is implemented.
11 pub kind: MessageKind,
12 pub span: Option<Span>,
13 pub reason: Reason,
14 pub hints: Vec<String>,
15 /// Machine readable identifier error code eg, "E0001"
16 pub code: Option<&'static str>,
17 // pub source: ErrorSource
18}
19
20#[derive(Clone, Debug, Default)]
21pub enum ErrorSource {

Callers 15

nFunction · 0.85
BFunction · 0.85
zFunction · 0.85
highlight.jsFile · 0.85
QFunction · 0.85
yFunction · 0.85
fFunction · 0.85
oFunction · 0.85
tFunction · 0.85
DFunction · 0.85
PFunction · 0.85
highlight.min.jsFile · 0.85

Implementers 1

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

Calls

no outgoing calls

Tested by

no test coverage detected