Struct diagnostic_quick::QError
source · pub struct QError {
pub error: Box<QErrorKind>,
pub level: DiagnosticLevel,
}Fields§
§error: Box<QErrorKind>§level: DiagnosticLevelImplementations§
source§impl QError
impl QError
pub fn as_diagnostic(&self) -> Diagnostic
source§impl QError
impl QError
pub fn syntax_error(msg: impl Into<String>) -> Self
pub fn runtime_error(msg: impl Into<String>) -> Self
pub fn kind(&self) -> &QErrorKind
pub fn with_file(self, file: &FileID) -> Self
pub fn with_range(self, range: &Range<usize>) -> Self
pub fn with_level(self, level: impl Into<DiagnosticLevel>) -> Self
Trait Implementations§
source§impl Error for QError
impl Error for QError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AgentAuthError> for QError
impl From<AgentAuthError> for QError
source§fn from(error: AgentAuthError) -> Self
fn from(error: AgentAuthError) -> Self
Converts to this type from the input type.
source§impl From<CompareAndSwapError> for QError
impl From<CompareAndSwapError> for QError
source§fn from(error: CompareAndSwapError) -> Self
fn from(error: CompareAndSwapError) -> Self
Converts to this type from the input type.
source§impl From<DiagnosticError> for QError
impl From<DiagnosticError> for QError
source§fn from(error: DiagnosticError) -> Self
fn from(error: DiagnosticError) -> Self
Converts to this type from the input type.
source§impl From<FontLoadingError> for QError
impl From<FontLoadingError> for QError
source§fn from(error: FontLoadingError) -> Self
fn from(error: FontLoadingError) -> Self
Converts to this type from the input type.
source§impl From<FromStrError> for QError
impl From<FromStrError> for QError
source§fn from(error: FromStrError) -> Self
fn from(error: FromStrError) -> Self
Converts to this type from the input type.
source§impl From<GlyphLoadingError> for QError
impl From<GlyphLoadingError> for QError
source§fn from(error: GlyphLoadingError) -> Self
fn from(error: GlyphLoadingError) -> Self
Converts to this type from the input type.
source§impl From<ImageError> for QError
impl From<ImageError> for QError
source§fn from(error: ImageError) -> Self
fn from(error: ImageError) -> Self
Converts to this type from the input type.
source§impl From<ParseBigIntError> for QError
impl From<ParseBigIntError> for QError
source§fn from(error: ParseBigIntError) -> Self
fn from(error: ParseBigIntError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for QError
impl From<ParseError> for QError
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for QError
impl From<ParseError> for QError
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for QError
impl From<ParseError> for QError
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for QError
impl From<ParseError> for QError
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for QError
impl From<ParseFloatError> for QError
source§fn from(error: ParseFloatError) -> Self
fn from(error: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for QError
impl From<ParseIntError> for QError
source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
source§impl<T> From<PoisonError<T>> for QError
impl<T> From<PoisonError<T>> for QError
source§fn from(error: PoisonError<T>) -> Self
fn from(error: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<SelectionError> for QError
impl From<SelectionError> for QError
source§fn from(error: SelectionError) -> Self
fn from(error: SelectionError) -> Self
Converts to this type from the input type.
source§impl<T> From<TryFromBigIntError<T>> for QErrorwhere
T: Error + 'static,
impl<T> From<TryFromBigIntError<T>> for QErrorwhere T: Error + 'static,
source§fn from(error: TryFromBigIntError<T>) -> Self
fn from(error: TryFromBigIntError<T>) -> Self
Converts to this type from the input type.