use crate::runner::RunnerError;
use crate::Port;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum PortError {
#[error("Invalid port mapping, expect a `<host port>:<container port>`, got {0}")]
InvalidPortMapping(String),
#[error("Container port {0} not bind")]
PortNotBindYet(Port),
#[error("Container port {0} not found")]
ContainerPortNotFound(Port),
#[error(transparent)]
RunnerError(#[from] RunnerError),
}