Update error.rs

This commit is contained in:
Serial 2021-08-23 23:25:06 -04:00
parent 96c907874a
commit fc843dd943

View file

@ -47,6 +47,12 @@ pub enum LoftyError {
/// Arises when invalid data is encountered while reading an ID3v2 synchronized text frame /// Arises when invalid data is encountered while reading an ID3v2 synchronized text frame
#[error("ID3v2: Encountered invalid data in SYLT frame")] #[error("ID3v2: Encountered invalid data in SYLT frame")]
BadSyncText, BadSyncText,
/// Arises when invalid data is encountered while reading an ID3v2 general encapsulated object frame
#[error("ID3v2: Encountered invalid data in GEOB frame")]
BadEncapsulatedObject,
/// Arists when [`std::str::from_utf8`] fails to parse a frame ID
#[error("ID3v2: Encountered an invalid frame ID")]
BadFrameID,
/// Errors that arise while reading/writing to WAV files /// Errors that arise while reading/writing to WAV files
#[error("Riff: {0}")] #[error("Riff: {0}")]
Wav(&'static str), Wav(&'static str),