pub enum SarifError {
Show 13 variants
InvalidPhysicalLocationError(PhysicalLocationBuilderError),
InvalidArtifactLocation(ArtifactLocationBuilderError),
InvalidToolComponent(ToolComponentBuilderError),
InvalidLocation(LocationBuilderError),
InvalidMessage(MessageBuilderError),
InvalidRegion(RegionBuilderError),
InvalidResult(ResultBuilderError),
InvalidRun(RunBuilderError),
InvalidSarif(SarifBuilderError),
InvalidTool(ToolBuilderError),
InvalidFix(FixBuilderError),
UnknownLocation(FileID, Range<usize>),
UnknownFile(FileID),
}Variants
InvalidPhysicalLocationError(PhysicalLocationBuilderError)
InvalidArtifactLocation(ArtifactLocationBuilderError)
InvalidToolComponent(ToolComponentBuilderError)
InvalidLocation(LocationBuilderError)
InvalidMessage(MessageBuilderError)
InvalidRegion(RegionBuilderError)
InvalidResult(ResultBuilderError)
InvalidRun(RunBuilderError)
InvalidSarif(SarifBuilderError)
InvalidTool(ToolBuilderError)
InvalidFix(FixBuilderError)
UnknownLocation(FileID, Range<usize>)
UnknownFile(FileID)
Trait Implementations
sourceimpl Debug for SarifError
impl Debug for SarifError
sourceimpl Display for SarifError
impl Display for SarifError
sourceimpl Error for SarifError
impl Error for SarifError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ArtifactLocationBuilderError> for SarifError
impl From<ArtifactLocationBuilderError> for SarifError
sourcefn from(source: ArtifactLocationBuilderError) -> Self
fn from(source: ArtifactLocationBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<FixBuilderError> for SarifError
impl From<FixBuilderError> for SarifError
sourcefn from(source: FixBuilderError) -> Self
fn from(source: FixBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<LocationBuilderError> for SarifError
impl From<LocationBuilderError> for SarifError
sourcefn from(source: LocationBuilderError) -> Self
fn from(source: LocationBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<MessageBuilderError> for SarifError
impl From<MessageBuilderError> for SarifError
sourcefn from(source: MessageBuilderError) -> Self
fn from(source: MessageBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<PhysicalLocationBuilderError> for SarifError
impl From<PhysicalLocationBuilderError> for SarifError
sourcefn from(source: PhysicalLocationBuilderError) -> Self
fn from(source: PhysicalLocationBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<RegionBuilderError> for SarifError
impl From<RegionBuilderError> for SarifError
sourcefn from(source: RegionBuilderError) -> Self
fn from(source: RegionBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<ResultBuilderError> for SarifError
impl From<ResultBuilderError> for SarifError
sourcefn from(source: ResultBuilderError) -> Self
fn from(source: ResultBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<RunBuilderError> for SarifError
impl From<RunBuilderError> for SarifError
sourcefn from(source: RunBuilderError) -> Self
fn from(source: RunBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<SarifBuilderError> for SarifError
impl From<SarifBuilderError> for SarifError
sourcefn from(source: SarifBuilderError) -> Self
fn from(source: SarifBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<ToolBuilderError> for SarifError
impl From<ToolBuilderError> for SarifError
sourcefn from(source: ToolBuilderError) -> Self
fn from(source: ToolBuilderError) -> Self
Converts to this type from the input type.
sourceimpl From<ToolComponentBuilderError> for SarifError
impl From<ToolComponentBuilderError> for SarifError
sourcefn from(source: ToolComponentBuilderError) -> Self
fn from(source: ToolComponentBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for SarifError
impl Send for SarifError
impl Sync for SarifError
impl Unpin for SarifError
impl UnwindSafe for SarifError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more