Class BaseIncidentProcessor

  • All Implemented Interfaces:
    IIncidentProcessor

    public abstract class BaseIncidentProcessor
    extends Object
    implements IIncidentProcessor
    Abstract implementation of the incident processor with built-in exception cause search through the cause hierarchy of the source exception
    • Constructor Detail

      • BaseIncidentProcessor

        public BaseIncidentProcessor()
    • Method Detail

      • getApplicableCause

        protected Throwable getApplicableCause​(Throwable source,
                                               Class<?>... targets)
        Gets the applicable cause that matches provided target filter
        Parameters:
        source - The source exception. May not be null
        targets - The target cause type filter. May not be empty
        Returns:
        The applicable cause if found. null otherwise