use std::path::PathBuf;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum PtyError {
#[error("pty i/o error: {0}")]
Io(#[from] std::io::Error),
#[error("pty operation failed: {0}")]
System(String),
#[error("working directory is missing or not a directory: {0}")]
InvalidWorkingDir(PathBuf),
#[error("operation not supported: {0}")]
Unsupported(String),
}