Error returned from LangelicEpub.parse/1 or LangelicEpub.build/1.
The kind field is an atom identifying the error class. The message field
is a human-readable string suitable for logging.
Kinds
Parse errors:
:invalid_zip— bytes are not a valid ZIP archive:invalid_mimetype—mimetypeentry is missing or its content is notapplication/epub+zip(a leading UTF-8 BOM and surrounding whitespace are tolerated):missing_container— noMETA-INF/container.xml:missing_opf— OPF file referenced in container.xml not found:malformed_opf— OPF could not be parsed:io— internal I/O failure
Build errors:
:missing_required_field— title, identifier, or language is missing:invalid_chapter— a chapter's data is not valid UTF-8 XHTML:duplicate_id— two chapters or assets share the sameid:invalid_page_direction—page_progression_directionis not"rtl","ltr", ornil
Safety:
:panic— Rust side panicked. This should never happen — report a bug.
Summary
Types
@type kind() ::
:invalid_zip
| :invalid_mimetype
| :missing_container
| :missing_opf
| :malformed_opf
| :io
| :missing_required_field
| :invalid_chapter
| :duplicate_id
| :invalid_page_direction
| :panic