Basic error injection functionality.