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 Throwable
getResultException(OperationResult 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, PreconditionViolationException
-
throwException
public static void throwException(Throwable e, OperationResult result) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PreconditionViolationException
-
getResultException
public static Throwable getResultException(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?
-
-