pub enum SarifError {
Show 15 variants
InvalidReportingDescriptorReference(ReportingDescriptorReferenceBuilderError),
InvalidReportingDescriptor(ReportingDescriptorBuilderError),
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§
InvalidReportingDescriptorReference(ReportingDescriptorReferenceBuilderError)
InvalidReportingDescriptor(ReportingDescriptorBuilderError)
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§
Source§impl Debug for SarifError
impl Debug for SarifError
Source§impl Display for SarifError
impl Display for SarifError
Source§impl Error for SarifError
impl Error for SarifError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ArtifactLocationBuilderError> for SarifError
impl From<ArtifactLocationBuilderError> for SarifError
Source§fn from(source: ArtifactLocationBuilderError) -> Self
fn from(source: ArtifactLocationBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<FixBuilderError> for SarifError
impl From<FixBuilderError> for SarifError
Source§fn from(source: FixBuilderError) -> Self
fn from(source: FixBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<LocationBuilderError> for SarifError
impl From<LocationBuilderError> for SarifError
Source§fn from(source: LocationBuilderError) -> Self
fn from(source: LocationBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<MessageBuilderError> for SarifError
impl From<MessageBuilderError> for SarifError
Source§fn from(source: MessageBuilderError) -> Self
fn from(source: MessageBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalLocationBuilderError> for SarifError
impl From<PhysicalLocationBuilderError> for SarifError
Source§fn from(source: PhysicalLocationBuilderError) -> Self
fn from(source: PhysicalLocationBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<RegionBuilderError> for SarifError
impl From<RegionBuilderError> for SarifError
Source§fn from(source: RegionBuilderError) -> Self
fn from(source: RegionBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ReportingDescriptorBuilderError> for SarifError
impl From<ReportingDescriptorBuilderError> for SarifError
Source§fn from(source: ReportingDescriptorBuilderError) -> Self
fn from(source: ReportingDescriptorBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ReportingDescriptorReferenceBuilderError> for SarifError
impl From<ReportingDescriptorReferenceBuilderError> for SarifError
Source§fn from(source: ReportingDescriptorReferenceBuilderError) -> Self
fn from(source: ReportingDescriptorReferenceBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ResultBuilderError> for SarifError
impl From<ResultBuilderError> for SarifError
Source§fn from(source: ResultBuilderError) -> Self
fn from(source: ResultBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<RunBuilderError> for SarifError
impl From<RunBuilderError> for SarifError
Source§fn from(source: RunBuilderError) -> Self
fn from(source: RunBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<SarifBuilderError> for SarifError
impl From<SarifBuilderError> for SarifError
Source§fn from(source: SarifBuilderError) -> Self
fn from(source: SarifBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ToolBuilderError> for SarifError
impl From<ToolBuilderError> for SarifError
Source§fn from(source: ToolBuilderError) -> Self
fn from(source: ToolBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ToolComponentBuilderError> for SarifError
impl From<ToolComponentBuilderError> for SarifError
Source§fn from(source: ToolComponentBuilderError) -> Self
fn from(source: ToolComponentBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SarifError
impl RefUnwindSafe for SarifError
impl Send for SarifError
impl Sync for SarifError
impl Unpin for SarifError
impl UnwindSafe for SarifError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more