mac_usernotifications/error.rs
1/// Errors returned by this crate.
2#[derive(Debug, Clone, thiserror::Error, PartialEq, Eq)]
3#[non_exhaustive]
4pub enum Error {
5 /// No bundle identifier (need valid `.app` bundle).
6 #[error("No bundle identifier found. UNUserNotificationCenter requires a valid .app bundle.")]
7 NoBundleIdentifier,
8
9 /// macOS rejected the request.
10 #[error("macOS rejected the notification request")]
11 NotificationRejected,
12
13 /// Delivery was interrupted.
14 #[error("Response delivery was interrupted")]
15 ResponseDeliveryInterupted(#[from] futures_channel::oneshot::Canceled),
16}