pub fn pause_error(duration: Duration, message: &str) -> Error
Create a pause error for a workflow run.