Class BaseIncidentProcessor
- java.lang.Object
-
- com._1c.g5.v8.dt.incidentmanagement.core.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 Summary
Constructors Constructor Description BaseIncidentProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Throwable
getApplicableCause(Throwable source, Class<?>... targets)
Gets the applicable cause that matches provided target filter-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.incidentmanagement.core.IIncidentProcessor
getIncidentDetails
-
-
-
-
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 benull
targets
- The target cause type filter. May not be empty- Returns:
- The applicable cause if found.
null
otherwise
-
-