use crate::{InternalError, infra::InfraError, ops::rpc::RpcOpsError};
use thiserror::Error as ThisError;
#[derive(Debug, ThisError)]
pub enum RequestOpsError {
#[error(transparent)]
Infra(#[from] InfraError),
#[error("invalid response type")]
InvalidResponseType,
}
impl From<RequestOpsError> for InternalError {
fn from(err: RequestOpsError) -> Self {
RpcOpsError::from(err).into()
}
}