public class ErrorCollector
extends java.lang.Object
Constructor and Description |
---|
ErrorCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addException(java.lang.Exception exception)
Add
Exception to the collector. |
DeploymentException |
composeComprehensiveException()
Create
DeploymentException with message concatenated from collected exceptions. |
boolean |
isEmpty()
Checks whether any exception has been logged.
|
public void addException(java.lang.Exception exception)
Exception
to the collector.exception
- to be collected.public DeploymentException composeComprehensiveException()
DeploymentException
with message concatenated from collected exceptions.public boolean isEmpty()
true
iff no exception was logged, false
otherwise.Copyright © 2012–2020 Oracle Corporation. All rights reserved.