Enum samply_symbols::Error
source · #[non_exhaustive]
pub enum Error {
Show 44 variants
UnmatchedDebugId(DebugId, DebugId),
UnmatchedDebugIdOptional(DebugId, Option<DebugId>),
UnmatchedCodeId(CodeId, Option<CodeId>),
BreakpadParsing(BreakpadParseError),
InvalidFileOrInlineOriginIndexInBreakpadFile(u32),
InvalidBreakpadId(String),
NotEnoughInformationToIdentifyBinary,
CouldNotDetermineExternalFileFileKind,
UnexpectedExternalFileFileKind(FileKind),
NotEnoughInformationToIdentifySymbolMap,
FileLocationRefusedSubcacheLocation,
FileLocationRefusedExternalObjectLocation,
FileLocationRefusedPdbLocation,
FileLocationRefusedSourceFileLocation,
NoDisambiguatorForFatArchive(Vec<FatArchiveMember>),
EmptyFatArchive,
NoMatchMultiArch(Vec<FatArchiveMember>),
NoLuckMacOsSystemLibrary(Vec<Error>),
DebugLinkCrcMismatch(u32, u32),
PdbError(&'static str, PdbError),
PdbAddr2lineErrorWithContext(&'static str, Error),
InvalidInputError(&'static str),
ObjectParseError(FileKind, Error),
DyldCacheParseError(Error),
NoMatchingDyldCacheImagePath(String),
MachOHeaderParseError(Error),
HelperErrorDuringGetCandidatePathsForDebugFile(LibraryInfo, Box<dyn Error + Send + Sync>),
HelperErrorDuringGetCandidatePathsForBinary(Box<dyn Error + Send + Sync>),
HelperErrorDuringGetDyldSharedCachePaths(Box<dyn Error + Send + Sync>),
HelperErrorDuringOpenFile(String, Box<dyn Error + Send + Sync>),
HelperErrorDuringFileReading(String, Box<dyn Error + Send + Sync>),
NoCandidatePathForBinary(Option<String>, Option<DebugId>),
NoCandidatePathForDyldCache,
NoCandidatePathForDebugFile(LibraryInfo),
NoMatchingPdbForBinary(String),
NoDebugInfoInPeBinary(String),
PdbPathNotUtf8(String),
PdbPathWithoutFilename(String),
ArchiveParseError(PathBuf, Box<dyn Error + Send + Sync>),
FileNotInArchive(String),
PdbAddr2lineError(Error),
SrcSrvParseError(ParseError),
SrcSrvEvalError(EvalError),
Addr2lineContextCreationError(Error),
}Expand description
The error type used in this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnmatchedDebugId(DebugId, DebugId)
UnmatchedDebugIdOptional(DebugId, Option<DebugId>)
UnmatchedCodeId(CodeId, Option<CodeId>)
BreakpadParsing(BreakpadParseError)
InvalidFileOrInlineOriginIndexInBreakpadFile(u32)
InvalidBreakpadId(String)
NotEnoughInformationToIdentifyBinary
CouldNotDetermineExternalFileFileKind
UnexpectedExternalFileFileKind(FileKind)
NotEnoughInformationToIdentifySymbolMap
FileLocationRefusedSubcacheLocation
FileLocationRefusedExternalObjectLocation
FileLocationRefusedPdbLocation
FileLocationRefusedSourceFileLocation
NoDisambiguatorForFatArchive(Vec<FatArchiveMember>)
EmptyFatArchive
NoMatchMultiArch(Vec<FatArchiveMember>)
NoLuckMacOsSystemLibrary(Vec<Error>)
DebugLinkCrcMismatch(u32, u32)
PdbError(&'static str, PdbError)
PdbAddr2lineErrorWithContext(&'static str, Error)
InvalidInputError(&'static str)
ObjectParseError(FileKind, Error)
DyldCacheParseError(Error)
NoMatchingDyldCacheImagePath(String)
MachOHeaderParseError(Error)
HelperErrorDuringGetCandidatePathsForDebugFile(LibraryInfo, Box<dyn Error + Send + Sync>)
HelperErrorDuringGetCandidatePathsForBinary(Box<dyn Error + Send + Sync>)
HelperErrorDuringOpenFile(String, Box<dyn Error + Send + Sync>)
HelperErrorDuringFileReading(String, Box<dyn Error + Send + Sync>)
NoCandidatePathForBinary(Option<String>, Option<DebugId>)
NoCandidatePathForDyldCache
NoCandidatePathForDebugFile(LibraryInfo)
NoMatchingPdbForBinary(String)
NoDebugInfoInPeBinary(String)
PdbPathNotUtf8(String)
PdbPathWithoutFilename(String)
ArchiveParseError(PathBuf, Box<dyn Error + Send + Sync>)
FileNotInArchive(String)
PdbAddr2lineError(Error)
SrcSrvParseError(ParseError)
SrcSrvEvalError(EvalError)
Addr2lineContextCreationError(Error)
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.