Enum armorlib::errors::ArmorlibError
[−]
[src]
pub enum ArmorlibError { UnknownProcessingError(String), ParseError(String), MissingPreprocessor(String), MissingMetadata(String), ReadFileError(String), }
An enum that represents an error specific to ArmorLib. This enum implements
std:error::Error
.
Variants
UnknownProcessingError(String)
For use when an unknown processing error occurs.
ParseError(String)
For use when a parsing error, such as that between a string and a number, occurs. The attached String is a human-meaningful description of the error.
MissingPreprocessor(String)
For use when a preprocessor is missing. The attached String
is the name of the
preprocessor.
MissingMetadata(String)
For use when an expected key is missing from a preprocessor's metadata. The attached
String is the key's path in the format <preprocessor>/<key>
, following the convention
defined by ScanObject::get_metadata
.
ReadFileError(String)
For use when an error occurs while reading a file.
Trait Implementations
impl Debug for ArmorlibError
[src]
impl Clone for ArmorlibError
[src]
fn clone(&self) -> ArmorlibError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for ArmorlibError
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ArmorlibError
[src]
fn eq(&self, __arg_0: &ArmorlibError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ArmorlibError) -> bool
[src]
This method tests for !=
.
impl Eq for ArmorlibError
[src]
impl Display for ArmorlibError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more