// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java // The path to the documents directory. String dataDir = Utils.getDataDir(HandleExceptions.class); Project project; try { project = new Project(dataDir + "ProjectWithException.mpp"); } catch (TasksReadingException ex) { System.out.println("Message:"); System.out.println(ex.getMessage()); System.out.println("Log:"); System.out.println(ex.getLogText()); if (ex.getCause() != null) { System.out.println("Inner exception message:"); System.out.println(ex.getCause().getMessage()); } } catch (Exception e) { System.out.println(e.getMessage()); }