Package org.glassfish.tyrus.core
Class ErrorCollector
- java.lang.Object
-
- org.glassfish.tyrus.core.ErrorCollector
-
public class ErrorCollector extends java.lang.Object
Used to collect deployment errors to present these to the user together.- Author:
- Stepan Kopriva (stepan.kopriva at oracle.com)
-
-
Constructor Summary
Constructors Constructor Description ErrorCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(java.lang.Exception exception)
AddException
to the collector.DeploymentException
composeComprehensiveException()
CreateDeploymentException
with message concatenated from collected exceptions.boolean
isEmpty()
Checks whether any exception has been logged.
-
-
-
Method Detail
-
addException
public void addException(java.lang.Exception exception)
AddException
to the collector.- Parameters:
exception
- to be collected.
-
composeComprehensiveException
public DeploymentException composeComprehensiveException()
CreateDeploymentException
with message concatenated from collected exceptions.- Returns:
- comprehensive exception.
-
isEmpty
public boolean isEmpty()
Checks whether any exception has been logged.- Returns:
true
iff no exception was logged,false
otherwise.
-
-