Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-760

importer can display the exception stack trace when importing fails

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 5.12.2
    • None
    • Security Level: Jimmy

      User Story


      As an app developer, when keikai fails to import a specific cell, I want to know the actual error stack trace so that I can investigate or debug it further.

      Acceptance Criteria

      describe the final result from the owner's point of view to be counted as completed

      Details

      The current message doesn't show the actual cause:

      io.keikai.importer.ImportException: Fail to import cell Z15 in sheet Sheet1 from book document.xlsx
      	at io.keikai.importer.XlsxImporter.imports(XlsxImporter.java:346)
      	at io.keikai.range.impl.imexp.ExcelImportAdapter.imports(ExcelImportAdapter.java:48)
      

      Line 346 is the line to throw the RuntimeException, not a real cause.

      Propose solution

      		} catch (RuntimeException e) { // KEIKAI-164
                               //print error stack trace
      			throw new ImportException("Fail to import " +  _importPhase.toString(), e);
      		} finally {
      

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: