public class ErrorCollector
extends java.lang.Object
| Constructor and Description | 
|---|
| ErrorCollector() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addException(java.lang.Exception exception)Add  Exceptionto the collector. | 
| DeploymentException | composeComprehensiveException()Create  DeploymentExceptionwith 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–2025 Oracle Corporation. All rights reserved.