Class RepoCommonUtils
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.util.RepoCommonUtils
-
public class RepoCommonUtils extends Object
- Author:
- katka
-
-
Constructor Summary
Constructors Constructor Description RepoCommonUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull Throwable
getResultException(@NotNull OperationResult result)
static @NotNull Throwable
getResultException(@NotNull OperationResultType result)
static Throwable
getResultExceptionIfExists(OperationResult result)
This method tries to determine an exception from an operation result.static void
processErrorCriticality(Object object, CriticalityType criticality, Throwable e, OperationResult result)
static void
throwException(Throwable e, OperationResult result)
-
-
-
Method Detail
-
processErrorCriticality
public static void processErrorCriticality(Object object, CriticalityType criticality, Throwable e, OperationResult result) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException, ObjectAlreadyExistsException
-
throwException
public static void throwException(Throwable e, OperationResult result) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException, ObjectAlreadyExistsException
-
getResultException
@NotNull public static @NotNull Throwable getResultException(@NotNull @NotNull OperationResultType result)
-
getResultException
@NotNull public static @NotNull Throwable getResultException(@NotNull @NotNull OperationResult result)
-
getResultExceptionIfExists
public static Throwable getResultExceptionIfExists(OperationResult result)
This method tries to determine an exception from an operation result. It does a depth-first search, but treating subresults from last one to the first one. Hopefully this will lead to correct exception. TODO think about handled errors here: e.g. should we skip them when looking for exceptions?
-
-