#[repr(u16)]pub enum ErrorCode {
Show 22 variants
InvalidAccession = 1_001,
UnknownVariantType = 1_002,
InvalidPosition = 1_003,
InvalidEdit = 1_004,
UnexpectedEnd = 1_005,
UnexpectedChar = 1_006,
InvalidBase = 1_007,
InvalidAminoAcid = 1_008,
ReferenceNotFound = 2_001,
SequenceNotFound = 2_002,
ChromosomeNotFound = 2_003,
PositionOutOfBounds = 3_001,
ReferenceMismatch = 3_002,
InvalidRange = 3_003,
ExonIntronBoundary = 3_004,
UtrCdsBoundary = 3_005,
IntronicVariant = 4_001,
UnsupportedVariant = 4_002,
ConversionFailed = 5_001,
NoOverlappingTranscript = 5_002,
IoError = 9_001,
JsonError = 9_002,
}Expand description
Error codes for categorizing errors
These codes can be used for programmatic error handling and for documentation lookup.
Variants§
InvalidAccession = 1_001
Invalid accession format
UnknownVariantType = 1_002
Unknown variant type prefix
InvalidPosition = 1_003
Invalid position format
InvalidEdit = 1_004
Invalid edit format
UnexpectedEnd = 1_005
Unexpected end of input
UnexpectedChar = 1_006
Unexpected characters
InvalidBase = 1_007
Invalid base/nucleotide
InvalidAminoAcid = 1_008
Invalid amino acid
ReferenceNotFound = 2_001
Reference/transcript not found
SequenceNotFound = 2_002
Sequence not available
ChromosomeNotFound = 2_003
Chromosome/contig not found
PositionOutOfBounds = 3_001
Position out of bounds
ReferenceMismatch = 3_002
Reference sequence mismatch
InvalidRange = 3_003
Invalid coordinate range
ExonIntronBoundary = 3_004
Exon-intron boundary crossing
UtrCdsBoundary = 3_005
UTR-CDS boundary crossing
IntronicVariant = 4_001
Intronic variant (cannot normalize)
UnsupportedVariant = 4_002
Unsupported variant type
ConversionFailed = 5_001
Coordinate conversion failed
NoOverlappingTranscript = 5_002
No overlapping transcript
IoError = 9_001
File IO error
JsonError = 9_002
JSON parsing error
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.