public class ErrorCollector extends Object
Constructor and Description |
---|
ErrorCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addException(Exception exception)
Add
Exception to the collector. |
javax.websocket.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 javax.websocket.DeploymentException composeComprehensiveException()
DeploymentException
with message concatenated from collected exceptions.public boolean isEmpty()
true
iff no exception was logged, false
otherwise.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.