pub enum MessageError {
Show 21 variants
NoProfile,
NoEvent,
NoEventHandler,
UnknownCiEvent(CiEvent),
CiEventNotSet,
NoCommits,
UnknownRequest,
SerializeRequest(Error),
SerializeResponse(Error),
WriteRequest(Error),
WriteResponse(Error),
ReadLine(Error),
DeserializeRequest(Error),
DeserializeResponse(Error),
RadicleProfile(Error),
Trigger,
StorageError(Error),
RepositoryError(RepositoryError),
CobStoreError(Error),
RadicleSurfError(Error),
UnknownPatchAction(String),
}
Expand description
All possible errors from the CI broker messages.
Variants§
NoProfile
RequestBuilder
does not have profile set.
NoEvent
RequestBuilder
does not have event set.
NoEventHandler
RequestBuilder
does not have event handler set.
UnknownCiEvent(CiEvent)
We got a CI event we don’t know what to do with.
CiEventNotSet
CI event was not set for RequestBuilder
.
NoCommits
Request message lacks commits to run CI on.
UnknownRequest
Request message is neither a “push” nor a “patch”
SerializeRequest(Error)
Failed to serialize a request message as JSON. This should never happen and likely indicates a programming failure.
SerializeResponse(Error)
Failed to serialize a response message as JSON. This should never happen and likely indicates a programming failure.
WriteRequest(Error)
Failed to write the serialized request message to an open file.
WriteResponse(Error)
Failed to write the serialized response message to an open file.
ReadLine(Error)
Failed to read a line of JSON from an open file.
DeserializeRequest(Error)
Failed to parse JSON as a request or a response.
DeserializeResponse(Error)
Failed to parse JSON as a response or a response.
RadicleProfile(Error)
Error from Radicle.
Trigger
Error retrieving context to generate trigger.
StorageError(Error)
Error from Radicle storage.
RepositoryError(RepositoryError)
Error from Radicle repository.
CobStoreError(Error)
Error from Radicle COB.
RadicleSurfError(Error)
Error from radicle-surf
crate.
UnknownPatchAction(String)
Trying to create a PatchAction from an invalid value.