Class RepoCommonUtils
java.lang.Object
com.evolveum.midpoint.repo.common.util.RepoCommonUtils
- Author:
- katka
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ThrowablegetResultException(@NotNull OperationResult result) static @NotNull ThrowablegetResultException(@NotNull OperationResultType result) static ThrowableThis method tries to determine an exception from an operation result.static voidprocessErrorCriticality(Object object, CriticalityType criticality, Throwable e, OperationResult result) static voidthrowException(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?
-