Package ome.formats.importer.cli
Class ErrorHandler
- java.lang.Object
-
- ome.formats.importer.util.ErrorHandler
-
- ome.formats.importer.cli.ErrorHandler
-
- All Implemented Interfaces:
IObservable
,IObserver
public class ErrorHandler extends ErrorHandler
IObserver
based on the gui ErrorHandler code which collects all exceptions duringImportLibrary.importCandidates(ome.formats.importer.ImportConfig, ome.formats.importer.ImportCandidates)
and after the import is finished offers to submit them via the feedback system.- Since:
- Beta4.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ome.formats.importer.util.ErrorHandler
ErrorHandler.EXCEPTION_EVENT, ErrorHandler.FILE_EXCEPTION, ErrorHandler.INTERNAL_EXCEPTION, ErrorHandler.MISSING_LIBRARY, ErrorHandler.UNKNOWN_FORMAT, ErrorHandler.UNREADABLE_FILE
-
-
Field Summary
-
Fields inherited from class ome.formats.importer.util.ErrorHandler
cancelUploads, config, errors, fileUploadErrors, icMap, observers, sendFiles, sendLogs, totalErrors
-
-
Constructor Summary
Constructors Constructor Description ErrorHandler(ImportConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onUpdate(IObservable importLibrary, ImportEvent event)
abstract on update method-
Methods inherited from class ome.formats.importer.util.ErrorHandler
addError, addObserver, clearErrors, deleteObserver, errorCount, executePost, finishCancelled, finishComplete, finishWithErroredFiles, getStackTrace, isSend, notifyObservers, onAddError, onCancel, onException, onNotSending, onSending, onSent, sendErrors, update, uploadFile
-
-
-
-
Constructor Detail
-
ErrorHandler
public ErrorHandler(ImportConfig config)
-
-
Method Detail
-
onUpdate
public void onUpdate(IObservable importLibrary, ImportEvent event)
Description copied from class:ErrorHandler
abstract on update method- Specified by:
onUpdate
in classErrorHandler
- Parameters:
importLibrary
- the import libraryevent
- - importEvent
-
-