pub fn error_tool() -> Tool
Creates a tool that simulates errors.
The error_type parameter controls what kind of error to simulate.
error_type