case ErrorCodes.RESOURCE_RECORD_ALREADY_EXISTS:
case ErrorCodes.POOL_ALREADY_EXISTS:
case ErrorCodes.POOL_RECORD_ALREADY_EXISTS:
return new ResourceAlreadyExistsException(message, exception);
case ErrorCodes.DIRECTIONALPOOL_OVERLAP:
return new DirectionalGroupOverlapException(message, exception);
}
return exception;
}