public class ErrorCollector extends Object
| Constructor and Description |
|---|
ErrorCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addException(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(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-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.