feat(error): add error type for invalid paging mode

- add `InvalidPagingMode` error to handle invalid paging options
This commit is contained in:
Jeremiah Russell
2025-10-03 09:44:58 +01:00
committed by Jeremiah Russell
parent a9b591c9d5
commit 465a590a09

View File

@@ -3,6 +3,9 @@ use thiserror::Error;
/// Error messages for cull-gmail
#[derive(Debug, Error)]
pub enum Error {
/// Invalid paging mode option
#[error("Invalid paging mode option")]
InvalidPagingMode,
/// Configuration directory not set
#[error("Configuration directory not set")]
DirectoryUnset,