session.getLog().log(LogService.LOG_ERROR, "Preparing commit for resource processor failed", e); if (e.getCode() == ResourceProcessorException.CODE_PREPARE) { throw new DeploymentException(CODE_COMMIT_ERROR, "Preparing commit for resource processor failed!", e); throw new DeploymentException(e.getCode(), "Preparing commit for resource processor failed!", e);
if (rpe.getCode() == ResourceProcessorException.CODE_RESOURCE_SHARING_VIOLATION) { throw new DeploymentException(CODE_RESOURCE_SHARING_VIOLATION, "Sharing violation while processing resource '" + name + "'", rpe);