List of usage examples for java.util ServiceConfigurationError printStackTrace
public void printStackTrace()
From source file:dictionary.DictionaryService.java
public String getDefinition(String word) { String definition = null;/*from w w w. j a v a2 s.c o m*/ try { Iterator<Dictionary> dictionaries = loader.iterator(); while (definition == null && dictionaries.hasNext()) { Dictionary d = dictionaries.next(); definition = d.getDefinition(word); } } catch (ServiceConfigurationError serviceError) { definition = null; serviceError.printStackTrace(); } return definition; }