| | |
| | | stackTraceToSingleLineString(e)); |
| | | DirectoryServer.sendAlertNotification(this, |
| | | ALERT_TYPE_LDIF_BACKEND_CANNOT_WRITE_UPDATE, m); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), |
| | | m, e); |
| | | } |
| | | |
| | |
| | | stackTraceToSingleLineString(e)); |
| | | DirectoryServer.sendAlertNotification(this, |
| | | ALERT_TYPE_LDIF_BACKEND_CANNOT_WRITE_UPDATE, m); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), |
| | | m, e); |
| | | } |
| | | } |
| | |
| | | stackTraceToSingleLineString(e)); |
| | | DirectoryServer.sendAlertNotification(this, |
| | | ALERT_TYPE_LDIF_BACKEND_CANNOT_WRITE_UPDATE, m); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), |
| | | m, e); |
| | | } |
| | | |
| | |
| | | currentConfig.dn()); |
| | | DirectoryServer.sendAlertNotification(this, |
| | | ALERT_TYPE_LDIF_BACKEND_CANNOT_WRITE_UPDATE, m); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), m); |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), m); |
| | | } |
| | | |
| | | if (tempFile.exists()) |
| | |
| | | stackTraceToSingleLineString(e)); |
| | | DirectoryServer.sendAlertNotification(this, |
| | | ALERT_TYPE_LDIF_BACKEND_CANNOT_WRITE_UPDATE, m); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), |
| | | m, e); |
| | | } |
| | | } |
| | |
| | | { |
| | | LocalizableMessage m = |
| | | ERR_LDIF_BACKEND_CANNOT_WRITE_ENTRY_TO_LDIF.get(entryDN, stackTraceToSingleLineString(e)); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), m, e); |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), m, e); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | logger.traceException(e); |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_CANNOT_CREATE_LDIF_WRITER.get(stackTraceToSingleLineString(e)); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), m, e); |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), m, e); |
| | | } |
| | | } |
| | | |
| | |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_ERROR_READING_LDIF.get( |
| | | stackTraceToSingleLineString(le)); |
| | | throw new DirectoryException( |
| | | DirectoryServer.getServerErrorResultCode(), m, le); |
| | | DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), m, le); |
| | | } |
| | | continue; |
| | | } |
| | |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_ERROR_READING_LDIF.get(stackTraceToSingleLineString(e)); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), m, e); |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), m, e); |
| | | } |
| | | } |
| | | finally |
| | |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_CANNOT_CREATE_LDIF_READER.get(stackTraceToSingleLineString(e)); |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), m, e); |
| | | throw new DirectoryException(DirectoryServer.getCoreConfigManager().getServerErrorResultCode(), m, e); |
| | | } |
| | | } |
| | | |