pub enum BasicError {
Show 45 variants
RowIdNotFound(usize),
ColIdNotFound(usize),
CellIdNotFound(usize, usize),
RowIndexUnavailable(u32),
ColIndexUnavailable(u32),
BlockIdNotFound(u16, usize),
BlockCellIdNotFound(u16, usize, usize, usize),
BlockRowIdNotFound(u16, usize, usize),
BlockColIdNotFound(u16, usize, usize),
BlockRefNameTaken(String, u16, usize),
BlockIdHasAlreadyExisted(usize),
BlockIdDoesNotExist(usize),
SheetIdNotFound(u16),
CannotFindIdxInBlock(u16, usize, u32, u32),
TextIdNotFound(u32),
FuncIdNotFound(u16),
BookIdNotFound(u8),
NameNotFound(u32),
RangeIdNotFound(u32),
CubeIdNotFound(u32),
SheetNameNotFound(String),
SheetNameAlreadyExists(String),
SheetIdxExceed(usize),
CreatingBlockOn(usize),
CreatingBlockOnEphemeral(u64),
BlockTooLarge(u32, u32, u32, u32, u64),
LineRangeOutOfSheet(u32, usize, u32),
LineRangeOutOfBlock(usize, u32, usize, usize),
BadBlockLineOrder(usize, usize),
ExtRefIdNotFound(u32),
EphemeralCellInReference(u64),
InvalidFormula(String),
BindBlockSizeMismatch(usize, usize, usize),
UnavailableSheetId(u16),
NoAppendix {
block_id: usize,
craft_id: String,
tag: u8,
},
CheckpointNotFound(String),
InvalidDefinedName(String),
DefinedNameNotFound(String),
DefinedNameAlreadyExists(String),
DefinedNameCycle(String),
IncompleteRowColLength(usize, usize),
ReferencingEphemeralCell(u64),
InvalidShadowId(u64),
IncompletePayload(&'static str),
While {
doing: String,
source: Box<BasicError>,
},
}Expand description
Failures from the engine’s lookup and addressing layer. Every message says which addressing scheme a number belongs to — an index (a position, which moves) or an id (stable) — never just “sheet 3”, since confusing the two is what causes most of these. Where it happened comes from the context around it, not from here.
Variants§
RowIdNotFound(usize)
ColIdNotFound(usize)
CellIdNotFound(usize, usize)
BlockIdNotFound(u16, usize)
BlockCellIdNotFound(u16, usize, usize, usize)
BlockRowIdNotFound(u16, usize, usize)
BlockColIdNotFound(u16, usize, usize)
BlockRefNameTaken(String, u16, usize)
BlockIdHasAlreadyExisted(usize)
BlockIdDoesNotExist(usize)
SheetIdNotFound(u16)
CannotFindIdxInBlock(u16, usize, u32, u32)
TextIdNotFound(u32)
FuncIdNotFound(u16)
BookIdNotFound(u8)
NameNotFound(u32)
RangeIdNotFound(u32)
CubeIdNotFound(u32)
SheetNameNotFound(String)
SheetNameAlreadyExists(String)
SheetIdxExceed(usize)
CreatingBlockOn(usize)
CreatingBlockOnEphemeral(u64)
BlockTooLarge(u32, u32, u32, u32, u64)
LineRangeOutOfSheet(u32, usize, u32)
LineRangeOutOfBlock(usize, u32, usize, usize)
BadBlockLineOrder(usize, usize)
ExtRefIdNotFound(u32)
EphemeralCellInReference(u64)
InvalidFormula(String)
BindBlockSizeMismatch(usize, usize, usize)
NoAppendix
CheckpointNotFound(String)
InvalidDefinedName(String)
DefinedNameNotFound(String)
DefinedNameAlreadyExists(String)
DefinedNameCycle(String)
IncompleteRowColLength(usize, usize)
ReferencingEphemeralCell(u64)
InvalidShadowId(u64)
IncompletePayload(&'static str)
While
What the engine was doing when the failure inside happened. An id several layers from the coordinate it came from means nothing on its own — and a block cell’s lookup can fail on its block’s anchor, a different cell from the one asked about.
Trait Implementations§
Source§impl Debug for BasicError
impl Debug for BasicError
Source§impl Display for BasicError
impl Display for BasicError
Source§impl Error for BasicError
impl Error for BasicError
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<BasicError> for Error
impl From<BasicError> for Error
Source§fn from(source: BasicError) -> Error
fn from(source: BasicError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BasicError
impl RefUnwindSafe for BasicError
impl Send for BasicError
impl Sync for BasicError
impl Unpin for BasicError
impl UnsafeUnpin for BasicError
impl UnwindSafe for BasicError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.