Enum gedcomx::GedcomxError [−][src]
pub enum GedcomxError { NoId(String), WrongDocumentType { expected: DocumentType, actual: DocumentType, }, DateParse { parsed_string: String, error: String, }, QualifierParse { parsed_string: String, }, JSONError(Error), XMLError(String), }
Expand description
An error returned by the library.
Variants
NoId(String)
An object with an Id
was needed for an operation, but the object had
no id.
An object with a certain DocumentType variant was needed for an operation, but the object had a different type.
Show fields
Fields of WrongDocumentType
expected: DocumentType
actual: DocumentType
Error while parsing a string as a Gedcomx date.
Error while parsing a string as a qualifier name (FactQualifier
,
SourceReferenceQualifier
, or NamePartQualifier
).
Show fields
Fields of QualifierParse
parsed_string: String
JSONError(Error)
Error returned while attempting to serialize / deserialize as JSON.
XMLError(String)
Error returned while attempting to serialize / deserialize as XML.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GedcomxError
impl Send for GedcomxError
impl Sync for GedcomxError
impl Unpin for GedcomxError
impl !UnwindSafe for GedcomxError