Class ExceptionCatchingResourceModelSource

  • All Implemented Interfaces:
    ResourceModelSource, ResourceModelSourceErrors
    Direct Known Subclasses:
    CachingResourceModelSource

    public abstract class ExceptionCatchingResourceModelSource
    extends DelegateResourceModelSource
    Wraps a ResourceModelSource and provides resilience in case the underlying source throws checked or unchecked exceptions. Any exceptions thrown will be caught, and returnResultNodes(com.dtolabs.rundeck.core.common.INodeSet) called with either null (exception thrown), or the result of the underlying call to getNodes