Class BatchProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
chemaxon.formats.documents.jchemoffice.BatchProcessingException
- All Implemented Interfaces:
Serializable
Specific exception class that collects possible internal exceptions from the batch actions defined on the following
IDocumentWriter
,IDocumentReader
IDocumentConverter
interfaces.Collects and raise exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBatchProcessingException
(String message) Constructor accepting the main message that needs to be mediated to the user. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the caused internal exception to be collected for later use.void
clear()
Deletes all exceptions inside.get
(int index) Returns with the specific cause from the list of causes.Returns with all collected internal reasons why the batch process failed overall.int
size()
Determines the size/number of the issue occurred during the batch workflow.void
Throws the exceptions if there are some ...Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BatchProcessingException
Constructor accepting the main message that needs to be mediated to the user.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method)
-
-
Method Details
-
addCause
Adds the caused internal exception to be collected for later use.- Parameters:
cause
- The cause (which is another internal exception saved for later retrieval by thegetExceptions()
method). -- Throws:
Exception
-
getExceptions
Returns with all collected internal reasons why the batch process failed overall.- Returns:
- List of throwable problems (causes).
-
size
public int size()Determines the size/number of the issue occurred during the batch workflow.- Returns:
- Integer value representing the size of the collection.
-
get
Returns with the specific cause from the list of causes.- Parameters:
index
- Position of the cause in the list by this index parameter.
-
clear
public void clear()Deletes all exceptions inside. -
throwThemWhenNeed
Throws the exceptions if there are some ...- Throws:
BatchProcessingException
-