pub enum PhotonError {
TopicNotFound(String),
SubscriptionNotFound(String),
EventNotFound(String),
InvalidTopicName(String),
PayloadError(String),
SchemaMismatch(String),
TopicAlreadyExists(String),
SubscriptionNameRequired,
PersistenceError(String),
Identity(String),
Internal(String),
}Expand description
Errors that can occur in Photon operations.
Variants§
TopicNotFound(String)
Topic not found in registry.
SubscriptionNotFound(String)
Subscription not found.
EventNotFound(String)
Event not found.
InvalidTopicName(String)
Invalid topic name.
PayloadError(String)
Payload serialization/deserialization error.
SchemaMismatch(String)
Schema mismatch at publish time.
TopicAlreadyExists(String)
Topic already registered with different schema.
SubscriptionNameRequired
Subscription name required for durable subscriptions.
PersistenceError(String)
Persistence / store error (ops metadata adapters).
Identity(String)
Identity reconstruction failed at the handler boundary.
Produced when photon_core::IdentityFactory::reconstruct rejects actor JSON
(or a typed-actor downcast fails). Executor maps this to
crate::instrumentation::FailureReason::IdentityBuild.
Internal(String)
Internal error.
Trait Implementations§
Source§impl Clone for PhotonError
impl Clone for PhotonError
Source§fn clone(&self) -> PhotonError
fn clone(&self) -> PhotonError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhotonError
impl Debug for PhotonError
Source§impl Display for PhotonError
impl Display for PhotonError
Source§impl Error for PhotonError
impl Error for PhotonError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for PhotonError
impl From<Error> for PhotonError
Auto Trait Implementations§
impl Freeze for PhotonError
impl RefUnwindSafe for PhotonError
impl Send for PhotonError
impl Sync for PhotonError
impl Unpin for PhotonError
impl UnsafeUnpin for PhotonError
impl UnwindSafe for PhotonError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more