Enum norad::error::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 24 variants
DowngradeUnsupported,
PreexistingPublicObjectLibsKey,
MissingDefaultLayer,
MissingLayer(String),
DuplicateLayer(String),
InvalidColor(InvalidColorString),
DuplicateGlyph {
layer: String,
glyph: String,
},
MissingGlyph {
layer: String,
glyph: String,
},
IoError(IoError),
ParseError(XmlError),
Glif(GlifError),
GlifWrite(GlifWriteError),
PlistError(PlistError),
InvalidFontInfo,
FontInfoUpconversion,
InvalidGroups(GroupsValidationError),
GroupsUpconversionFailure(GroupsValidationError),
ExpectedPlistDictionary(String),
ExpectedPlistString,
ExpectedPositiveValue,
ConvertContour(ErrorKind),
MissingFile(String),
MissingUfoDir(String),
InvalidStoreEntry(PathBuf, StoreError),
}
Expand description
Errors that occur while working with font objects.
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.
An error returned when trying to save an UFO in anything less than the latest version.
An error returned when trying to save a Glyph that contains a public.objectLibs
lib key already (the key is automatically managed by Norad).
MissingLayer(String)
Tuple Fields of MissingLayer
0: String
DuplicateLayer(String)
Tuple Fields of DuplicateLayer
0: String
InvalidColor(InvalidColorString)
Tuple Fields of InvalidColor
IoError(IoError)
Tuple Fields of IoError
0: IoError
ParseError(XmlError)
Tuple Fields of ParseError
0: XmlError
Glif(GlifError)
Tuple Fields of Glif
0: GlifError
GlifWrite(GlifWriteError)
Tuple Fields of GlifWrite
PlistError(PlistError)
Tuple Fields of PlistError
0: PlistError
InvalidGroups(GroupsValidationError)
Tuple Fields of InvalidGroups
GroupsUpconversionFailure(GroupsValidationError)
Tuple Fields of GroupsUpconversionFailure
ExpectedPlistDictionary(String)
Tuple Fields of ExpectedPlistDictionary
0: String
ConvertContour(ErrorKind)
Tuple Fields of ConvertContour
0: ErrorKind
MissingFile(String)
Tuple Fields of MissingFile
0: String
MissingUfoDir(String)
Tuple Fields of MissingUfoDir
0: String
InvalidStoreEntry(PathBuf, StoreError)
Tuple Fields of InvalidStoreEntry
0: PathBuf
1: StoreError