@Override protected void throwException(Exception cause, ProvisioningOperationState<? extends AsynchronousOperationResult> opState, OperationResult result) throws GenericConnectorException { recordCompletionError(cause, opState, result); if (cause instanceof GenericConnectorException) { throw (GenericConnectorException)cause; } else { throw new GenericConnectorException(cause.getMessage(), cause); } }
ProvisioningUtil.recordFatalError(LOGGER, result, "Synchronization error: generic connector framework error: " + e.getMessage(), e); throw new GenericConnectorException(e.getMessage(), e);
return finalShadow; } catch (GenericFrameworkException e) { throw new GenericConnectorException(e.getMessage(), e);
throw new GenericConnectorException("Generic error in connector " + connectorSpec + ": " + e.getMessage(), e);
parentResult.recordFatalError( "Generic error in the connector " + connector + ": " + ex.getMessage(), ex); throw new GenericConnectorException("Generic error in connector connector " + connector + ": " + ex.getMessage(), ex); } catch (ObjectAlreadyExistsException ex) {
parentResult.recordFatalError( "Generic error in the connector " + connector + ". Reason: " + e.getMessage(), e); throw new GenericConnectorException("Generic error in the connector " + connector + ". Reason: " + e.getMessage(), e); } catch (SchemaException ex) {
throw new GenericConnectorException( "Unable to delete object from the resource. Probably it has not been created yet because of previous unavailability of the resource."); } catch (GenericFrameworkException ex) { result.recordFatalError("Generic error in connector: " + ex.getMessage(), ex); throw new GenericConnectorException("Generic error in connector: " + ex.getMessage(), ex); } catch (SecurityViolationException | PolicyViolationException | RuntimeException | Error ex) { result.recordFatalError(ex);
connector.search(entitlementDef, query, handler, attributesToReturn, null, searchHierarchyConstraints, subjectCtx, parentResult); } catch (GenericFrameworkException e) { throw new GenericConnectorException("Generic error in the connector " + connector + ". Reason: " + e.getMessage(), e);
throw (ExpressionEvaluationException)cause; } else if (cause instanceof GenericFrameworkException) { throw new GenericConnectorException(cause.getMessage(), cause); } else { throw new SystemException(cause.getMessage(), cause);
GenericConnectorException e = new GenericConnectorException( "Unable to modify object in the resource. Probably it has not been created yet because of previous unavailability of the resource."); result.recordFatalError(e);
} catch (GenericFrameworkException ex) { result.recordFatalError("Could not create object on the resource. Generic error in connector: " + ex.getMessage(), ex); throw new GenericConnectorException("Generic error in connector: " + ex.getMessage(), ex); } catch (Throwable e){ result.recordFatalError(e);
} catch (GenericFrameworkException ex) { result.recordFatalError("Could not create object on the resource. Generic error in connector: " + ex.getMessage(), ex); throw new GenericConnectorException("Generic error in connector: " + ex.getMessage(), ex); } catch (ObjectAlreadyExistsException ex){ result.recordFatalError("Could not create object on the resource. Object already exists on the resource: " + ex.getMessage(), ex);
throw new GenericConnectorException( "Unable to get object from the resource. Probably it has not been created yet because of previous unavailability of the resource.");
throw (SchemaException)e.getCause(); } catch (GenericFrameworkException e) { throw new GenericConnectorException(e.getMessage(), e);