List of usage examples for java.lang Exception printStackTrace
public void printStackTrace(PrintStream s)
From source file:Main.java
public static void main(String[] argv) throws Exception { try {// w w w . j av a 2 s .com } catch (Exception e) { e.printStackTrace(getErrorLoggerPrintStream()); } }
From source file:com.shmsoft.dmass.services.EnronProjectsPage.java
public static void main(String[] argv) { EnronProjectsPage instance = new EnronProjectsPage(); try {//from w w w .j a v a 2s.co m instance.createPages(); } catch (Exception e) { e.printStackTrace(System.out); } }
From source file:com.threerings.stage.tools.xml.StageSceneParser.java
/** * A simple hook for parsing a single scene from the command line. *//*from w ww . ja v a 2 s .c om*/ public static void main(String[] args) { if (args.length < 1) { System.err.println("Usage: StageSceneParser scene.xml"); System.exit(-1); } try { System.out.println("Parsed " + new StageSceneParser().parseScene(args[0])); } catch (Exception e) { e.printStackTrace(System.err); } }
From source file:com.shmsoft.dmass.services.EnronProjects.java
public static void main(String[] argv) { String edrmList = "/home/mark/projects/FreeEedData/edrm_enron_list"; String projectsDir = "/home/mark/projects/FreeEedData/projects"; EnronProjects instance = new EnronProjects(); try {//from www . ja v a2s .c o m instance.createProjects(edrmList, projectsDir); } catch (Exception e) { e.printStackTrace(System.out); } }