Update docs to correspond to errors thrown