pub enum EventError {
InvalidPayload {
message: String,
},
UnsupportedEventType {
event_type: String,
},
InvalidSignature,
MissingField {
field: String,
},
PayloadTooLarge {
size: usize,
max: usize,
},
JsonParsing(Error),
SecretProvider(Box<dyn Error + Send + Sync>),
}Expand description
Event processing errors.
These errors occur when processing GitHub webhook events, including parsing, validation, and normalization failures.
Variants§
InvalidPayload
The event payload is invalid or malformed.
UnsupportedEventType
The event type is not supported.
InvalidSignature
Webhook signature validation failed.
MissingField
A required field is missing from the payload.
PayloadTooLarge
The payload size exceeds the maximum allowed.
JsonParsing(Error)
JSON parsing failed.
SecretProvider(Box<dyn Error + Send + Sync>)
Secret provider error while validating signature.
Implementations§
Source§impl EventError
impl EventError
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Check if this error represents a transient condition that may succeed if retried.
Trait Implementations§
Source§impl Debug for EventError
impl Debug for EventError
Source§impl Display for EventError
impl Display for EventError
Source§impl Error for EventError
impl Error for EventError
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()
Auto Trait Implementations§
impl Freeze for EventError
impl !RefUnwindSafe for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl UnsafeUnpin for EventError
impl !UnwindSafe for EventError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.