* @return a list the default 'builtin' exceptions to be presented to the user (i.e.:
* AssertionError, RuntimeError, etc)
*/
public List<String> getBuiltinExceptions() {
ArrayList<String> list = new ArrayList<String>();
IInterpreterManager useManager = ChooseInterpreterManager.chooseInterpreterManager();
if (useManager != null) {
IToken[] pythonTokens = useManager.getBuiltinMod(IPythonNature.DEFAULT_INTERPRETER).getGlobalTokens();
for (IToken token : pythonTokens) {
String pyToken = token.getRepresentation();
String lower = pyToken.toLowerCase();
if (lower.contains("error") || lower.contains("exception") || lower.contains("warning")) {
list.add(pyToken.trim());