public void AddError(CompilerError e) { Errors.Add(e); Success = false; if (ExitOnError) { CompilerErrorException ex = new CompilerErrorException(Errors); throw ex; } }