Class ErrorCollector


  • public class ErrorCollector
    extends java.lang.Object
    Used to collect deployment errors to present these to the user together.
    Author:
    Stepan Kopriva
    • Constructor Detail

      • ErrorCollector

        public ErrorCollector()
    • Method Detail

      • addException

        public void addException​(java.lang.Exception exception)
        Add Exception to the collector.
        Parameters:
        exception - to be collected.
      • composeComprehensiveException

        public DeploymentException composeComprehensiveException()
        Create DeploymentException 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.