use prost::DecodeError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Failed to parse uuid {0}")]
ParseUuidError(#[from] uuid::Error),
#[error("No operation found")]
NoOperationFound,
#[error("Invalid status found")]
InvalidStatus,
#[error("Version cannot be found in headers")]
VersionNotFoundInHeaders,
#[error("Invalid version")]
InvalidVersion,
#[error("Failed to decode port forwarding msg {0}")]
FailedToDecodePortForwardingMsg(#[from] DecodeError),
#[error("Payload is invalid or does not exist")]
InvalidPayload,
}