Document some exceptions that might be thrown.