Class RepoCommonUtils
java.lang.Object
com.evolveum.midpoint.repo.common.util.RepoCommonUtils
- Author:
- katka
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Throwable
getResultException
(@NotNull OperationResult result) static @NotNull Throwable
getResultException
(@NotNull OperationResultType result) static Throwable
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)
-
Constructor Details
-
RepoCommonUtils
public RepoCommonUtils()
-
-
Method Details
-
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
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?
-