Class TaskExceptionHandlingUtil
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.TaskExceptionHandlingUtil
-
@Experimental public class TaskExceptionHandlingUtil extends Object
Preliminary (temporary) place for error handling code in tasks.
-
-
Constructor Summary
Constructors Constructor Description TaskExceptionHandlingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskException
convertException(Throwable t, TaskPartitionDefinitionType partition)
General method that processes any exceptions from a task.static <TRR extends TaskRunResult>
TRRprocessException(Throwable t, Trace logger, TaskPartitionDefinitionType partition, String ctx, TRR runResult)
TODO TODO TODO Here we do the error handling.static <TRR extends TaskRunResult>
TRRprocessFinish(Trace logger, TaskPartitionDefinitionType partition, String ctx, TRR runResult, ErrorState errorState)
-
-
-
Method Detail
-
convertException
public static TaskException convertException(Throwable t, TaskPartitionDefinitionType partition)
General method that processes any exceptions from a task.
-
processFinish
public static <TRR extends TaskRunResult> TRR processFinish(Trace logger, TaskPartitionDefinitionType partition, String ctx, TRR runResult, ErrorState errorState)
-
processException
public static <TRR extends TaskRunResult> TRR processException(Throwable t, Trace logger, TaskPartitionDefinitionType partition, String ctx, TRR runResult)
TODO TODO TODO Here we do the error handling.
-
-