pub enum Error {
Show 20 variants
MissingMagicBytes,
NoIndex,
AttributeIndexNotFound,
AttributeIndexSizeOverflow,
NoColumnsInHeader,
MissingRequiredField(String),
IllegalHeaderSize(usize),
InvalidFlatbuffer(InvalidFlatbuffer),
IoError(Error),
JsonError(Error),
RtreeError(Error),
UnsupportedColumnType(String),
InvalidAttributeValue {
msg: String,
},
UnknownEnumTag(&'static str, String),
IndexCreationError(String),
QueryExecutionError(String),
HttpClient(HttpError),
CityJson {
source: CjError,
},
CjseqError {
source: CjseqError,
},
StaticBTree {
source: Error,
},
}Expand description
The main error type for the FCB Core library. This enum represents all possible errors that can occur during FCB operations.
Variants§
MissingMagicBytes
NoIndex
AttributeIndexNotFound
AttributeIndexSizeOverflow
NoColumnsInHeader
MissingRequiredField(String)
IllegalHeaderSize(usize)
InvalidFlatbuffer(InvalidFlatbuffer)
IoError(Error)
JsonError(Error)
RtreeError(Error)
UnsupportedColumnType(String)
InvalidAttributeValue
UnknownEnumTag(&'static str, String)
A stored FlatBuffers enumeration tag with no CityJSON spelling. The
permitted values are fixed by appearance.schema.json, so an
unrecognised tag means the file was written by a newer writer or is
corrupt. Reported rather than defaulted: a silent default is exactly
how a texture written "wrapMode": "wrap" came back as "None".
IndexCreationError(String)
QueryExecutionError(String)
HttpClient(HttpError)
CityJson
Fields
§
source: CjErrorCjseqError
Fields
§
source: CjseqErrorStaticBTree
Implementations§
Source§impl Error
impl Error
Sourcepub fn is_io_error(&self) -> bool
pub fn is_io_error(&self) -> bool
Returns true if the error is related to IO operations
Sourcepub fn is_format_error(&self) -> bool
pub fn is_format_error(&self) -> bool
Returns true if the error is related to data format
Sourcepub fn is_validation_error(&self) -> bool
pub fn is_validation_error(&self) -> bool
Returns true if the error is related to validation
Sourcepub fn is_index_error(&self) -> bool
pub fn is_index_error(&self) -> bool
Returns true if the error is related to index or query operations
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)>
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<Error> for Error
impl From<Error> for Error
Source§fn from(source: PackedRtreeError) -> Self
fn from(source: PackedRtreeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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