Package org.glassfish.tyrus.core
Class ErrorCollector
java.lang.Object
org.glassfish.tyrus.core.ErrorCollector
Used to collect deployment errors to present these to the user together.
- Author:
- Stepan Kopriva
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddException(Exception exception) AddExceptionto the collector.CreateDeploymentExceptionwith message concatenated from collected exceptions.booleanisEmpty()Checks whether any exception has been logged.
-
Constructor Details
-
ErrorCollector
public ErrorCollector()
-
-
Method Details
-
addException
AddExceptionto the collector.- Parameters:
exception- to be collected.
-
composeComprehensiveException
CreateDeploymentExceptionwith message concatenated from collected exceptions.- Returns:
- comprehensive exception.
-
isEmpty
public boolean isEmpty()Checks whether any exception has been logged.- Returns:
trueiff no exception was logged,falseotherwise.
-